Created
January 6, 2012 07:13
-
-
Save jyotty/1569476 to your computer and use it in GitHub Desktop.
print 1 .. 1000 without loops or conditionals
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 characters
| #include <stdio.h> | |
| int main(void) | |
| { | |
| fall(1); | |
| } | |
| int fall(int e) | |
| { | |
| int a = 1/(1001-e); | |
| printf("%d\n", e); | |
| fall(e+1); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment