#include <iostream>
#include<iomanip>
using namespace std;
int main ()
{
int a=l,b=l,n, d;
cin>>n;
if(n==1lln==2)
{
for( int c=l;c<n;c++){
d=1;
cout<<d<<endl;}
}
else if (n>2)
cout<<l<<endl;
cout<<i<<endl;
for(int i=3;i<=n;i++){
d=a+b;
a=b;
b=d;
for (int j=2:j<=d;++j){cout<<d;}
cout<<d<<endl;
}
return 0;
}
关于普通数学函数题的例子,从键盘输入n(n<10),然后输出前n行: 1 1 2 2 3 3 3 5 5 5 5 5 8 8 8 8 8 8 8 8 13 13 13 13 13 13 13 13
于 2021-05-05 10:55:47 首次发布