Advertisement
Arek_

JD

Feb 24th, 2020
402
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. import os
  2. while 1 > 0:
  3. x = input("wpisz który jest rok lub x jeśli chcesz zamknąć: ")
  4. if x == 'x':
  5. exit()
  6. else:
  7. x= int(x)
  8. if x%4 == 0:
  9. print("Jest rok przestępny.")
  10. input("Kliknij Enter aby kontynułować...")
  11. else:
  12. print("Nie jest przestepny.")
  13. input("Kliknij Enter aby kontynułować...")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement