Question: CHALLENGE ACTIYITY 3.2.2: Basic if-else expression. Jump to level 1 - Write an expression that will cause the following code to print 'I am a



CHALLENGE ACTIYITY 3.2.2: Basic if-else expression. Jump to level 1 - Write an expression that will cause the following code to print 'I am a teenager' if the value of userAge is less than 20. - D- 1 import java.util.Scanner; public class deeChecker { public static void main(String [] args) { int userunge; Scanner scnr = new Scanner(System.in); userege = scor.nextInt(); // Program will be tested with values: 18, 19, 20, 21. if (userige >= 18 userige
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
