include stdio int main void int int int scanf for scanf for printf Sce

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
#include <stdio.h>
int main (void)
{int n, x;
int i, j;
int z, o, k;
scanf ("%d", &n);
for (i=1; i<=n; i++)
{scanf ("%d",&x);
z=1; o=1;
for (j=1; j<x; j++)
{ k=o;
o=z;
z+=k;
}
printf ("Scenario #%d:\n%d\n\n",i, o+z);
}
return 0;
}