Created
June 3, 2012 05:37
Revisions
-
mehcode revised this gist
Aug 3, 2012 . 1 changed file with 0 additions and 125 deletions.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 @@ -1,125 +0,0 @@ -
mehcode revised this gist
Jun 7, 2012 . 1 changed file with 1 addition and 1 deletion.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 @@ -1,3 +1,3 @@ if __name__ == '__main__': for i in range(1, 101): print("FizzBuzz"[i * i % 3 * 4 : 8 - -i ** 4 % 5] or i) -
mehcode revised this gist
Jun 6, 2012 . 1 changed file with 1 addition and 1 deletion.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 @@ -1,3 +1,3 @@ if __name__ == '__main__': for i in range(1, 101): print("FizzBuzz"[i * i % 3 * 4 : 8 -- i ** 4 % 5] or i) -
mehcode revised this gist
Jun 5, 2012 . 1 changed file with 1 addition and 1 deletion.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 @@ -1,3 +1,3 @@ if __name__ == '__main__': for i in range(1, 101): print("FizzBuzz"[i * i % 3 * 4 : 8 + i ** 4 % 5] or i) -
mehcode revised this gist
Jun 3, 2012 . 1 changed file with 1 addition and 1 deletion.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 @@ -1,3 +1,3 @@ if (__name__ == '__main__'): for i in range(1, 101): print("FizzBuzz"[i * i % 3 * 4 : 8 + i ** 4 % 5] or i) -
mehcode revised this gist
Jun 3, 2012 . 1 changed file with 1 addition and 1 deletion.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 @@ -1,3 +1,3 @@ if (__name__ == '__main__'): for i in range(1, 101): print("FizzBuzz"[i * i % 3 * 4 : 8 -- i ** 4 % 5] or i) -
mehcode revised this gist
Jun 3, 2012 . 2 changed files with 5 additions and 2 deletions.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 @@ -120,6 +120,6 @@ int main(int j) { } // Look Ma, No loops puts(text[j - 1]); (&main + ((void*)&exit - (void*)&main) * (j / 100))(j + 1); } 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,3 @@ if (__name__ == '__main__'): for i in range(1, 101): print("FizzBuzz"[i * i % 3 * 4:8 -- i ** 4 % 5] or i) -
mehcode revised this gist
Jun 3, 2012 . 1 changed file with 0 additions and 1 deletion.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 @@ -122,5 +122,4 @@ int main(int j) { // Look Ma, No loops puts(text[j]); (&main + ((void*)&exit - (void*)&main)*(j/100))(j+1); } -
mehcode created this gist
Jun 3, 2012 .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,126 @@ #include <stdio.h> #include <stdlib.h> char* text[] = { "1", "2", "Fizz", "4", "Buzz", "Fizz", "7", "8", "Fizz", "Buzz", "11", "Fizz", "13", "14", "FizzBuzz", "16", "17", "Fizz", "19", "Buzz", "Fizz", "22", "23", "Fizz", "Buzz", "26", "Fizz", "28", "29", "FizzBuzz", "31", "32", "Fizz", "34", "Buzz", "Fizz", "37", "38", "Fizz", "Buzz", "41", "Fizz", "43", "44", "FizzBuzz", "46", "47", "Fizz", "49", "Buzz", "Fizz", "52", "53", "Fizz", "Buzz", "56", "Fizz", "58", "59", "FizzBuzz", "61", "62", "Fizz", "64", "Buzz", "Fizz", "67", "68", "Fizz", "Buzz", "71", "Fizz", "73", "74", "FizzBuzz", "76", "77", "Fizz", "79", "Buzz", "Fizz", "82", "83", "Fizz", "Buzz", "86", "Fizz", "88", "89", "FizzBuzz", "91", "92", "Fizz", "94", "Buzz", "Fizz", "97", "98", "Fizz", "Buzz", "", }; int main(int j) { // Normal 'boring' answer for (unsigned i = 1; i <= 100; i++) { if ((i % 3 == 0) && (i % 5 == 0)) puts("FizzBuzz"); else if (i % 3 == 0) puts("Fizz"); else if (i % 5 == 0) puts("Buzz"); else printf("%u\n", i); } // Look Pa, No conditionals for (unsigned i = 0; i < 100; i++) { puts(text[i]); } // Look Ma, No loops puts(text[j]); (&main + ((void*)&exit - (void*)&main)*(j/100))(j+1); }