0

How to print " too young " in output

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

26th Sep 2019, 9:18 AM
Priyanka Gotugade.
Priyanka Gotugade. - avatar
1 Réponse
0
Ok I will try it
26th Sep 2019, 9:35 AM
Priyanka Gotugade.
Priyanka Gotugade. - avatar