CBSE Class 11 Computer Science Question 159 of 173

Data Handling — Question 11

Back to all questions
11
Question

Question 11

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!

Solution
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!
Answer