Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # coding=utf-8
- # Program wyświetli, czy podana liczba jest całkowita
- liczba = input("Podaj liczbę: ")
- if float(liczba) - int(liczba) == 0:
- print "Liczba",liczba,"jest całkowita!"
- else:
- print "Liczba",liczba,"jest niecałkowita!"
Advertisement
Add Comment
Please, Sign In to add comment