Input
Output
public class Nestedif { public static void main(String []args) { int a=12,b=7,c=5; if(a > b) { if(a > c){ System.out.println("Print the value of a "+a); } else{ System.out.println("Print the value of c "+c); } } else{ if(b > c){ System.out.println("Print the value of b "+b); } else{ System.out.println("Print the value of c "+c); } } } }