You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
250 B

int main()
{
int n;
int a = 1, b = 1;
n = getint();
int i=0;
while(i < n/2)
{
putint(a);
putint(b);
a = a + b;
b = a + b;
i = i + 1;
}
if(n%2) putint(a);
return 0;
}