Question: Design and implement a program (name it Youth) that reads from the user an integer values repressing age (say, age). The program prints out the
Design and implement a program (name it Youth) that reads from the user an integer values repressing age (say, age). The program prints out the entered values followed by a message as follows: If age is less or equal to 21, the message is Age is a state of mind.. Finally, the program always prints out the message Age is a state of mind. Format the outputs following the sample runs below.
Sample run 1:
You entered: 20
Youth is a wonderful thing. Enjoy.
Age is a state of mind.
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
