...

/

You See It Everywhere

You See It Everywhere

Test your C programming skills by solving the given puzzle about sequence generation.

We'll cover the following...

Puzzle code

...
Press + to interact
#include <stdio.h>
int main()
{
int f, n;
int count;
f = n = 1;
count=0;
while( count < 20 ) {
printf("%d ", f);
f+=n;
printf("%d ", n);
n+=f;
count+=2;
}
putchar('\n');
return(0);
}
...