Write a program that reports whether or not someone is old enough to vote in the U.S. You should do the following in your program: Ask the user for their age, and store it in a variable
Use an if/else statement with the proper comparison operator to print You are old enough to vote!
if the person’s age is at least 18, and You are not old enough to vote. otherwise
An example run of your program might look like this:
Age: 19 You are old enough to vote!
… or like this:
Age: 16 You are not old enough to vote


Write a program that reports whether or not someone is old enough to vote in the U.S. You should do

zari21 zari21    3   10.03.2021 09:01    5

Другие вопросы по теме Информатика