+ 2

How gate answer error

public class Program { public static void main(String[] args) { int age = 25; if(age > 0) { if(age <= 16) { System.out.println("Welcome!"); } else { System.out.println("Too Young"); } } else { System.out.println("Error"); } } }

11th Mar 2019, 12:28 AM
Priyanka Gotugade.
Priyanka Gotugade. - avatar
1 Resposta
0
I have run the above code and I an getting "Too Young" as output,which is correct
11th Mar 2019, 12:36 AM
Home Number
Home Number - avatar