SHARE
TWEET

Untitled

a guest Jun 26th, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def fb(n):
  2. i = 1
  3. while i < 101:
  4.     if i % 15 == 0:
  5.         print(i,    "Fizz Buzz!")
  6.     elif i % 3 == 0:
  7.         print(i,    "Fizz!")
  8.     elif i % 5 == 0:
  9.         print(i,    "Buzz!")
  10.     else:
  11.         print(i)
  12.  
  13.     i += 1
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top