Computer Science, asked by aartiverma388, 1 year ago

write a program in java to assign integers a,b,c with values 3,6,9. Perform the following operations and print the results of the expression

s= (a+b+c)/2 and
v=(a²+b²)/c³

please help !!!
help plzzzzzzz

Answers

Answered by QGP
67
Here is your code. We create class, then we create a main() function, and finally carry out the instructions given in the question.


public class Brainly{
    public static void main(String[] args)
    {
        int a = 3;
        int b = 6;
        int c = 9;
        
        double s = (a+b+c)/2;
        double v = (a*a) + (b*b);
        v = v / (c*c*c);
        
        
        System.out.println("s = "+s);
        System.out.println("v = "+v);
    }
}



Hope it helps
Purva
Brainly Community
Answered by agrawalrakhi700
8

Answer:

I HOPE IT HELPS YOU

Explanation:

PLEASE MARK ME AS BRAINLIEST

Attachments:
Similar questions