#include<bits/stdc++.h> using namespace std; int main() { int a0=0 ,a1=1; int a2=a0+a1; cout<<a0<<" "<<a1<<" "; int i=0; for(i=3;i<=21;i=i+1) { a2=a0+a1; cout<<a2<<" "; a0=a1,a1=a2; } return 0; }
By signing up a 羽润编程 universal account, you can submit code and join discussions in all online judging services provided by us.
Using your 羽润编程 universal account