3 ms·
for(int i=101;--i;)printf("%d\n",i); Assuming int main(int a) we can do a<100&&main(a+1);printf("%d\n",a); EDIT: missed constraint that it needs to start
by im3w1l 12y ago
for(int i=101;--i;)printf("%d\n",i);
Assuming int main(int a) we can do
a<100&&main(a+1);printf("%d\n",a);
EDIT: missed constraint that it needs to start with for(int i=0 from article.
- ConceptJunkie 12y agoIt's too bad the constraint wasn't what you said it was, because then you could do: for ( int i = 0144; or for ( int i = 0x64; Unfortunately, the constraint was "for ( int i = 0;". :-/