Advertisement
Guest User

Untitled

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