please help me by solving this question ...
its urgent ...
please
Attachments:
Answers
Answered by
1
public class PrintValue{
public static void main(String []args){
int a,b,c,s,v;
a= 3;
b=6;
c=9;
s=(a+b+c)/2;
v=(a*a+b*b)/c*c*c;
System.out.println(s);
System.out.println(v);
}
}
public static void main(String []args){
int a,b,c,s,v;
a= 3;
b=6;
c=9;
s=(a+b+c)/2;
v=(a*a+b*b)/c*c*c;
System.out.println(s);
System.out.println(v);
}
}
Answered by
1
public class expr { public static void main(String args[]) { int a=3,b=6,c=9; int s=(a+b+c)/2; int v=((a*a)+(b*b))/(c*c*c); System.out.println("s : "+s); System.out.println("v : "+v); }
Similar questions