Loop Up and Down

Test your C programming skills by solving the given puzzle about for loops.

We'll cover the following...

Puzzle code

...
Press + to interact
#include <stdio.h>
int main()
{
int u,d;
for( u=0, d=0; u<11; u++, d-- )
printf("%2d %2d\n", u, d);
return(0);
}
...