Created
March 5, 2017 03:36
-
-
Save Cr4ck3r/2c081dfe818642a0f3ea1dfa3c8fb00b to your computer and use it in GitHub Desktop.
Revisions
-
Cr4ck3r created this gist
Mar 5, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,20 @@ import sys if len(sys.argv)< 2: maxn = int(input("Enter the max: ")) else: upper = int(sys.argv[1]) n = 0 while n <= maxn: if n % 5 == 0 and n % 3 == 0: print('FizzBuzz') elif n % 3 == 0: print('Fizz') elif n % 5 == 0: print('Buzz') else: print(n) n = n + 1