Computer Science, asked by nabeelahmed3453, 2 months ago

write a program to input any 2 number find the squre of the smallest number and print the result​

Answers

Answered by choudharysakshi1920
0

Answer:

here is your answer.

class X

{

static void main(int a, int b, int c)

{

int min=Math.min(a, Math.min(b, c));

int max=Math.max(a, Math.max(b, c));

min*=min;

max*=max;

System.out.println("Square of largest number:"+max) ;

System.out.println("Square of the smallest number:"+min);

Explanation:

Similar questions