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
198 B

#include<bits/stdc++.h>
using namespace std;
int main() {
int a[20];
int i;
a[0]=0;
a[1]=1;
for(i=2; i<20; i++)
a[i]=a[i-2]+a[i-1];
for(i=19; i>=0; i--)
cout<<a[i]<<" ";
return 0;
}