Computer Science, asked by nidhi1027, 1 year ago

write a program in Java to enter integer a,b,c the following operations and print the result of the operations:S=(a+b+c)/2 and V=(a+b²)/c³​

Answers

Answered by amannishad0512p5zxh6
3

class Enter

{

public static void main ( int a,int b,int c)

{

int S=(a+b+c)/2;

int V=(a+(int)Math.pow(b,2))/(int)Math.pow(c,3);

System.out.println("S is "+S);

System.out.println("V is "+V);

}

}

Similar questions