• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Who can code?
#14
I am aware the code is ugly and I don't care- I know it works.

Python 2.6.5
Code:
for n in range(1,100):
    if n/3==int(n/3) and n/5!=int(n/5):print('fizz',)
    if n/5==int(n/5)and n/3!=int(n/3):print('buzz',)
    if n/5==int(n/5)and n/3==int(n/3):print('fizzbuzz',)
    if n/3!=int(n/3) and n/5!=int(n/5):print(n)
Having long hair is great until you have to pull a footlong out of the dog's butt. flatank.blogspot.com
I. AM. LATCH.
  Reply


Messages In This Thread
Who can code? - by Pack3t SynAck3r - 02-07-2010, 01:22 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [C++] Minesweeper Trainer - Source Code Clones 0 9,155 13-11-2011, 01:19 PM
Last Post: Clones

Forum Jump: