Guest User

Untitled

a guest
Dec 17th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. name = input("Enter your name: ")
  2. print ("Your name is " + str(name) + ".")
  3.  
  4. age = input("Enter your age: ")
  5. age = int(age)
  6. hundredage = (100 - age)
  7. year = (2017 + int(hundredage))
  8.  
  9. print ("You will turn 100 in " + str(year) + ".")
  10.  
  11. times = input("Enter another number: ")
  12. times = int(times)
  13. print (times * ("You will turn 100 in " + str(year) + "." + "\n"))
Add Comment
Please, Sign In to add comment