Father Age
EasyP3Coding
The father is 10 years older than twice Anna's age. Given Anna's age, return the father's age.
Example 1
- Input
- age = 10
- Output
- 30
Example 2
- Input
- age = 0
- Output
- 10
Example 3
- Input
- age = 1
- Output
- 12
Constraints
- 0 <= age <= 100
Hints
Give it a real attempt first. Run shows which examples fail.
Saved automatically
Run checks the 3 visible tests, Submit all 8. ⌘Enter runs, ⌘⇧Enter submits.