Advertisement
zippy1981

FizzBuzz++

Dec 17th, 2014
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.32 KB | None | 0 0
  1. __author__ = 'JDearing'
  2.  
  3.  
  4. def fizbuxx(min=0, max=100, fizz=3, buzz=5):
  5.     for x in range(min,max):
  6.         if(x%fizz == 0 and x%buzz == 0):
  7.             print ("fizzbuzz %d" % x)
  8.         elif (x%fizz == 0):
  9.             print("fizz %d" % x)
  10.         elif(x%buzz == 0):
  11.             print('buzz %d' % x)
  12.  
  13. fizbuxx(fizz=7)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement