Question: Create a program that takes in the users age as input. First, the age the user entered should be printed out. Second, if the user

 Create a program that takes in the users age as input.

Create a program that takes in the users age as input. First, the age the user entered should be printed out. Second, if the user is under 21 years old, print a statement indicating how wonderful it is to be young. Use the IF control structure in your exercise. For example: Input Result 18 Enter your age: You entered: 18 It's great to be young! Answer: (penalty regime: 10, 20, 30, 40 %)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!