w write a Java program was to print greater no. by input no.
Answers
Answered by
0
Answer:
raagi java thagi panduko, sallaga untadhi ok bye
Answered by
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