Advertisement
Guest User

Untitled

a guest
Oct 21st, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. a = float(input("Proszę podać dowolną liczbę całkowitą: \n"))
  2. if a==0:
  3. print("twoja liczba to 0", end=' ')
  4. elif a>0:
  5. print("Twoja liczba jest dodatnia", end=' ')
  6. else:
  7. print("Twoja liczba jest ujemna", end=' ')
  8.  
  9. if a % 2 == 0:
  10. print(", parzysta",end=' ')
  11. else:
  12. print(", nieparzysta",end=' ')
  13.  
  14. if a % 3 ==0:
  15. print(" i podzielna przez 3",end=' ')
  16. else:
  17. print(" i niepodzielna przez 3",end=' ')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement