Create a program that asks the user to enter their name and their age. Print out a message addressed to them that tells them the year that they will turn 100 years
old
Solution (Program)-
language-PYTHON
name = input("What is your name: ") age = int(input("How old are you: ")) year = str((2014 - age)+100) print(name + " will be 100 years old in the year " + year) |
No comments:
Post a Comment