You are on page 1of 1

Practical 3

public class largest{


public static void main(String args[]){
int a=20,b=10,c=30;
if(a>b && a>c){
System.out.println("A is largest no");
}
else if(b>a && b>c){
System.out.println("B is largest no");
}
else{
System.out.println("C is largest no");
}
}
}

Output

C is largest no

You might also like