Computer Science, asked by hayama4874, 8 months ago

write a program to input two numbers a,b.If a>b,display the square of a otherwise square of b.

Answers

Answered by sharanya200636
0

Explanation:

void calc(int a,int b)

{

if (a>b)

System.out.println (a*a);

else

System.out.println (b*b);

}

HOPE IT HELPS

PLS MARK AS BRAINLIEST

Similar questions