Files
python/C++课程/第十七课一维数组/p186.cpp

19 lines
216 B
C++
Raw Normal View History

2025-08-30 18:35:01 +08:00
#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;
}