simbax

calkowite.py

Dec 28th, 2012
6,467
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.23 KB | None | 0 0
  1. # coding=utf-8
  2. # Program wyświetli, czy podana liczba jest całkowita
  3. liczba = input("Podaj liczbę: ")
  4. if float(liczba) - int(liczba) == 0:
  5.     print "Liczba",liczba,"jest całkowita!"
  6. else:
  7.     print "Liczba",liczba,"jest niecałkowita!"
Advertisement
Add Comment
Please, Sign In to add comment