- 3

Python

The programme should ask the user about their name then ask them about their age, based on what their age is the programme will calculate how many years later they will retire and tells the user about it, the retiring age in this case is 65.

19th Jan 2022, 12:07 AM
Lenoname
2 Answers
+ 1
Take first input as string Second input as integer print(65-second input, 'years are left...')
19th Jan 2022, 4:15 AM
NEZ
NEZ - avatar