Skip to content

Instantly share code, notes, and snippets.

@jyotty
Created January 6, 2012 07:13
Show Gist options
  • Select an option

  • Save jyotty/1569476 to your computer and use it in GitHub Desktop.

Select an option

Save jyotty/1569476 to your computer and use it in GitHub Desktop.
print 1 .. 1000 without loops or conditionals
#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