You are on page 1of 1

New App 1 app - View1 - Show event

import java.util.*;
public class dude
{
public static void main(String args[])
{
Scanner ob=new scanner(System.in);
int a,b,c;
System.out.println("enter three numbers");
a=ob.nextInt();
b=ob.nextInt();
c=ob.nextInt();
if((a>b)&&(a>c))
system.out.println("the first number is greatest:"+a);
if((b>a)&&(b>c))
system.out.println("the second number is greatest:+"b);
if((c>a)&&(c>b))
system.out.println("the third number is greater:"+c);
}
}

You might also like