Exerpad
🔥 0
0 XP
Exercise 1 · Chapter: ConditionsRequired+50 XP

Old Enough?

Can you vote? In many countries, you need to be at least 18 years old to vote.

Write a program that reads an age from input and checks if the person can vote.

  • If age >= 18, print You can vote!
  • Otherwise, print Too young to vote.
rust
fn main() {
}
Output
Run your code to see the output here.