Computer Science, asked by Vishrut10, 11 months ago

write a program to input two integers A and B find and print the greatest between a is to the power b and b raised to the power a values​

Attachments:

Answers

Answered by jas773
2

Answer:

class vishrut

{

p s v m(int a, int b)

{

if(Math.pow(a,b) >Math.pow(b,a))

S.O.Pln(a +"raised to"+ b +"is greater");

else

S.O.Pln(b +"raised to "+ a +"is greater");

}}

PLZ MARK AS BRAINLIEST

Similar questions