2.29

来源:互联网 发布:电子海报制作软件 编辑:程序博客网 时间:2024/06/05 09:06
#include<iostream> #include<iomanip> using namespace std; int main() { int*p; p = new int [20]; p[0]=p[1]=1; for(int i=2;i<20;i++) p[i]=p[i-2]+p[i-1]; for(int k=0;k<20;k++) { if(k%4==0) cout<<endl;< p=""> cout<<setw(12)<<p[k];< p=""> } return 0; }

0 0
原创粉丝点击