Advertisement
Guest User

Untitled

a guest
Feb 14th, 2016
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. name = str(input("Enter your name: "))
  2. age = int(input("Enter your age: "))
  3. copies = int(input("Number of copies you want to print out: "))
  4.  
  5.  
  6. if age >= 100:
  7. print(copies * (name + " You're too old!\n"))
  8. elif age <= 99:
  9. year_age = str((2016 - age) + 100)
  10. print(copies * (name + ", you will turn 100 at year " + year_age + ".\n"))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement