Computer Science, asked by Abhishekhero1, 1 year ago

write a program in Java to assign integers A , B ,C with values 3,6,9 . perform the following operator and print the result of operations: S=(a+b+c)/2 and V=(a^2+b^2)/c^3

Answers

Answered by rashi61
4
class sum
{
void main(int s, int v)
{
int a, b, c;
a=3;b=6;c=9;
s=(a+b+c)/2;
v=(Math. pow(a,2)+Math. pow(b,2))/Math. Pow(c,2);
System. out. println ("s="+s);
System. out. println ("v="+v);
}
}
Similar questions