write a program to input any 2 number find the squre of the smallest number and print the result
Answers
Answered by
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