Untitled


SUBMITTED BY: Guest

DATE: June 5, 2013, 5:55 p.m.

FORMAT: Text only

SIZE: 151 Bytes

HITS: 1031

  1. for x in xrange(1,101):
  2. f=x
  3. if x%3==0:
  4. f="Fizz"
  5. if x%5==0:
  6. f="Buzz"
  7. if x%3==0 and x%5==0:
  8. f="FizzBuzz"
  9. print f

comments powered by Disqus