Advertisement
JkSoftware

Day 5 - Exercise FizzBuzz

Nov 8th, 2021
717
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement