Computer Science, asked by sdgngbbn, 5 days ago

Please solve the above Java program.​

Attachments:

Answers

Answered by abinajee53
1

Answer:

Int a;

Int b;

Scanner scanner=new Scanner(System.in)

System.out.println("enter the number":)

Int a =scanner. nextInt() ;

System.out.println ("enter the number")

Int b =scanner. nextInt() ;

Class main()

{

public static void main(String []) {

if (a>b) {

System.out.println("square of a", a)

}

else{

System.out.println("square of b", b)

}

}

Similar questions