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
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