Advertisement
Guest User

Untitled

a guest
Apr 7th, 2020
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.19 KB | None | 0 0
  1. for i in range(1,101):
  2.     if i % 15 == 0 :
  3.         print('Fizzbuzz')
  4.     elif i % 3 == 0 :
  5.         print('Fizz')
  6.     elif i % 5 == 0 :
  7.         print('Buzz')
  8.     else :
  9.         print(i)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement