#include <stdio.h>
int main()
{
int n;
int a = 0;
int b = 1;
printf("Enter a value of n: ");
scanf("%d", &n);
printf("%d\n", a);
printf("%d\n", b);
for (int i = 2; i <= n; i++)
{
int c = a + b;
int temp = b;
a = temp;
b = c;
printf("%d\n", c);
}
return 0;
}