Question: Linux Lab Write an interactive script that asks for the user's age. If it is equal to or higher than 21, print a message saying
Linux Lab
Write an interactive script that asks for the user's age. If it is equal to or higher than 21, print a message saying that this user is allowed to drink alcohol. If the user's age is below 21, print a message telling the user how many years he or she has to wait before legally being allowed to drink. Display your script on the terminal using the cat command. Run the script and give inputs 15, then 30.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
