II. Write the Java expressions for the following:
1. ab + bc + ca
2. a2 + ab - b
1
3. ut +
-at²
2
IV
4.
u + V
5. (a + b)
6. 2(lb+bh+lh)
7. a++b2
8. x3 + xyz +y
Answers
Answered by
0
Answer:
i. int a = 0;
if ( a>0 && a<20 )
a++;
else a -- ;
System.out.println (a);
ii. int a =5, b= 2, c;
if ( a>b || a!=b)
c = ++ a + --b;
System.out.print(c+ “ “ +a+ “ “+b);
Similar questions