And here's C, while we're at it.
Code:#include <stdio.h> void foo(int x, int y) { if (EOF != scanf("%d",&x)) { if (foo(0, x + y), 0) { } } else { if (printf("%d\n", y)) { } } } int main(void) { if (foo(0, 0),0) { } }
And here's C, while we're at it.
Code:#include <stdio.h> void foo(int x, int y) { if (EOF != scanf("%d",&x)) { if (foo(0, x + y), 0) { } } else { if (printf("%d\n", y)) { } } } int main(void) { if (foo(0, 0),0) { } }
There are 10 types of people in this world, those who cringed when reading the beginning of this sentence and those who salivated to how superior they are for understanding something as simple as binary.