Computer Science

Write a program that inputs an age and print age after 10 years as shown below:

What is your age? 17
In ten years, you will be 27 years old!

Python

Python Data Handling

56 Likes

Answer

a = int(input("What is your age? "))
print("In ten years, you will be", a + 10, "years old!")

Output

What is your age? 17
In ten years, you will be 27 years old!

Answered By

25 Likes


Related Questions