Computer Science, asked by shivamkaushik6861, 8 months ago

Write a program in Java to enter integers Abc the following operation and print the results of the operations s =(a+b+c) /2 and v=(a2+b2) /c3

Answers

Answered by arvindkakade
2
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);
    }
}

Read more on Brainly.in - https://brainly.in/question/4258055#readmore
Similar questions