#include <iostream>
using namespace std;
int main()
{
int j,k;
for(j=1;j<6;j++)
cout<<" ";
cout<<"*"<<endl;
for(j=2;j<=5;j++)
{
for(k=1;k<=6-i;k++)
cout<<" ";
cout<<"*";
for(k=1;k<=2*i-3;k++)
cout<<" ";
cout<<"*"<<endl;
}
for(j=1;j<=11;j++)
cout<<"*";
cout<<endl;
return 0;
}
c++第四次上机实验
最新推荐文章于 2024-03-06 20:50:13 发布