Computer Science, asked by terror19, 9 months ago

w write a Java program was to print greater no. by input no.

Answers

Answered by varshith923
0

Answer:

raagi java thagi panduko, sallaga untadhi ok bye

Answered by TheUntrustworthy
48

import java. util*

class greater number

{

public static void main (String args [])

{

scanner sc=new scanner(System . in)

int a,b;

a=sc .nextInt();

b=sc .nextInt();

if (a>b)

System.out.println(a+"is a greater number")

else if (a<b)

System.out.println(b+"is a greater number")

else

System.out.println("They are equal")

}

}

Similar questions