Advertisement
Gonef

Untitled

Feb 23rd, 2020
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. for x in range(100,0,-1):
  2. if type(x/15) == int:
  3. print(str(x) + ' jest podzielne przez 15')
  4. elif type(x/5) == int:
  5. print(str(x) + ' jest podzielne przez 5')
  6. elif type(x/3) == int:
  7. print(str(x) + ' jest podzielne przez 3')
  8. else:
  9. print(str(x) + ' nie jest podzielne przez 3, 5 oraz 15')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement