Possible Duplicate:
Printing 1 to 1000 without loop or conditionals
#include <stdio.h>
#include<conio.h>
int fun(int n) {
--n && fun(n);
return printf( "\n%d", n+1);
}
int main(void) {
fun(1000);
getch();
return 0;
}
this is a program which prints 1 to 1000 without using loops or if-else. Are there other ways of doing that not using loops or if-else.