Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

FizzBuzz

Name: Anonymous 2012-10-05 7:23

for i in range(110):
    pr = ""
    pr += "Fizz" * (i%3 == 0)
    pr += "Buzz" * (i%5 == 0)
    pr += "Bazz" * (i%7 == 0)
    print (pr if pr else i)


Beat this, faghets.

Name: Anonymous 2012-10-05 17:58

>>22
Stop concatenating strings inside a loop. Also, back to /g/, ``please''!!

>>23
JavaScript is powerful but it has the elegance and the performance of a prehistoric chainsaw.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List