Skip to content

Instantly share code, notes, and snippets.

@Cr4ck3r
Last active March 7, 2017 03:55
Show Gist options
  • Save Cr4ck3r/320c7b02993b88dc9cdd0eb8ed89f1a5 to your computer and use it in GitHub Desktop.
Save Cr4ck3r/320c7b02993b88dc9cdd0eb8ed89f1a5 to your computer and use it in GitHub Desktop.

Revisions

  1. Cr4ck3r revised this gist Mar 7, 2017. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions fizzbuzz2.py
    Original file line number Diff line number Diff line change
    @@ -1,9 +1,9 @@
    for n in range(1,101):
    if n % 3 == 0 and n % 5 == 0:
    ¦ print ("fizzbuzz")
    print ("fizzbuzz")
    elif n % 3 == 0:
    ¦ print ("fizz")
    print ("fizz")
    elif n % 5 == 0:
    ¦ print ("buzz")
    print ("buzz")
    else:
    ¦ print (n)
    print (n)
  2. Cr4ck3r created this gist Feb 23, 2017.
    9 changes: 9 additions & 0 deletions fizzbuzz2.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    for n in range(1,101):
    if n % 3 == 0 and n % 5 == 0:
    ¦ print ("fizzbuzz")
    elif n % 3 == 0:
    ¦ print ("fizz")
    elif n % 5 == 0:
    ¦ print ("buzz")
    else:
    ¦ print (n)