Computer Science, asked by padmarani06190, 11 hours ago

int a=12,b=6,c=4;
System.out.println(Math.max(a, b)); System.out.println( (int) Math.pow (b,c)); System.out.println( (int) Math.sqrt (Math.pow (c,b) )); System.out.println(++a + ++b + 8);


Answers

Answered by ifraajmal163
1

Answer:

YOUR OUTPUT IS:

12

1296

64

28

Answered by ItzMeSam35
2

int a = 12, b = 6, c = 4;

System.out.println(Math.max(a,b);

= Math.max(a,b);

= Math.max(12,6);

= 12

System.out.println((int) Math.pow(b,c));

= (int) Math.pow(b,c);

= (int) Math.pow(6,4);

= (int) 6.0⁴

= (int) 1296.0

= 1296

System.out.println((int) Math.sqrt(Math.pow(c,b)));

= (int) Math.sqrt(Math.pow(c,b));

= (int) Math.sqrt(Math.pow(4,6));

= (int) Math.sqrt(4.0⁶)

= (int) Math.sqrt(4096.0)

= (int) √4096.0

= (int) 64.0

= 64

System.out.println(++a + ++b + 8);

= ++a + ++b + 8

= 13 + 7 + 8

= 28

Similar questions