Advertisement
JkSoftware

Day 5 - Exercise FizzBuzz

Nov 8th, 2021
759
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.21 KB | None | 0 0
  1. total = 0
  2. for i in range(0, 101):
  3.     if i % 3 == 0:
  4.         if i % 5 == 0:
  5.             print("FizzBuzz")
  6.         print("Fizz")
  7.     if i % 5 == 0:
  8.         print("Buzz")
  9.     else:
  10.         print(i)    
  11.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement