UNSOLVED JAVA PROGRAMMING
write a program to find and display the value of the given expressions:
a) x+3/5 - 2x+5/3 ; taking the value of x=5
b) a square + b square + c square / abc ; taking the values a=5, b=4, c=3
PLZ GIVE THE ANSWER WITHOUT ANY ERROR IN THE PROGRAM
Answers
Answered by
1
Answer:
a)class program
{public static void main (string ar[])
{int x; x=5;
double y=x+3/5-2*x+5/3;
system.out.println("Output is"+y);
}}
b)class prgm{public static void main (string ar []){int a,b,c;a=5;b=4;c=3;
doublex=a^2+b^2+c^2a*b*c;
system.out.println("output is"+x);
}}
i hope it's useful
Similar questions