Write a program segment that inputs Age, displays Yes, you can vote if Age is 18 or

Question:

Write a program segment that inputs Age, displays "Yes, you can vote" if Age is 18 or older and displays "You are too young to vote" if Age is less than 18, and displays nothing else. Remember to use the comparison operator when checking the value of Age in your If-Then-Else statements.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Prelude To Programming

ISBN: 9780133741636

6th Edition

Authors: Stewart Venit, Elizabeth Drake

Question Posted: