Bus Fare
Challenge on lesson: Checkpoint — Reading Problems
CHALLENGE
Difficulty: beginner+25 XP
**Description:** A bus line charges as follows: passengers under 6 or
70 and older ride free; everyone from 6 to under 70 pays 7000. Given age
t (0 ≤ t ≤ 120), print the fare.
**Input:** One integer t.
**Output:** One integer — the fare (0 or 7000).
**Example:** 5 → 0; 6 → 7000; 70 → 0.
**Constraints:** 40% of tests have 6 ≤ t ≤ 69; 100% have 0 ≤ t ≤ 120.
Press Submit to check your solution.
Back to lesson: Checkpoint — Reading Problems