Computer Science, asked by rathorepriyanshi050, 3 days ago

find out which input two numbers 11 and it . is greater by using if else statements one is​

Answers

Answered by rajahindmishra
0

Answer:

according to If else

Explanation:

import Java. util.Scanner ;

class Myclass

{

public static void main (string args[])

{

int a,b;

Scanner sc = new Scanner (System.in);

System.out.println("Enter any two numbers");

a=sc.nextInt()

b=sc.nextInt();

if (a>b)

System.out.println("a is a bigger number");

else

System.out.println("a is a smaller number");

}

}

Similar questions