+ 2
Nested If Statements
in below what value for age gives me the output Too Young: 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"); } } }
1 Answer
+ 13
1-16