Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a = float(input("Proszę podać dowolną liczbę całkowitą: \n"))
- if a==0:
- print("twoja liczba to 0", end=' ')
- elif a>0:
- print("Twoja liczba jest dodatnia", end=' ')
- else:
- print("Twoja liczba jest ujemna", end=' ')
- if a % 2 == 0:
- print(", parzysta",end=' ')
- else:
- print(", nieparzysta",end=' ')
- if a % 3 ==0:
- print(" i podzielna przez 3",end=' ')
- else:
- print(" i niepodzielna przez 3",end=' ')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement