Q. 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!

Answer :-

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

Output :-

What is your age? 14
In ten years, you will be 24 years old!

>>> 

2 Comments

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

  1. Not able to see the output pls provide output of this solution

    ReplyDelete

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post