Question: Create a program ( class name: Age ) that takes in the users age as input. First, the age the user entered should be printed
Create a program class name: Age that takes in the users age as input. First, the age the user entered should be printed out. Second, if the user is under years old, print a statement indicating how wonderful it is to be young. Use the IF control structure in your exercise. Your output should match as in the example below:Hint: Make sure to declare and use a constant for storing the value and using it in the lf statement.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
