Make a program that asks the person’s age and, if he is 18 years old or older, says

Make a program that asks the person’s age and, if he is 18 years old or older, says “Great. You can already drive a car”, and otherwise – “Unfortunately, it’s too early for you to drive a car.”

program zz1;
var n: integer; // set a variable of integer type
begin
write (‘How old are you?’);
read (n); // enter the person’s age from the keyboard
if (n> = 18) // check the condition, if the person’s age is 18 or higher, then we output one answer
then write (‘Great. You can already drive a car.’)
else
write (‘Sorry, it’s too early for you to drive.’); // otherwise, print another answer
end.



One of the components of a person's success in our time is receiving modern high-quality education, mastering the knowledge, skills and abilities necessary for life in society. A person today needs to study almost all his life, mastering everything new and new, acquiring the necessary professional qualities.