#include<bits/stdc++.h>
using namespace std;
int main(){
int a,b,c,d,e,f,g;
cin>>a>>b>>c>>d>>e>>f>>g;;
for(int j=1;j<=a;j++){
cout<<"*";
}
cout<<endl;
for(int j=1;j<=b;j++){
cout<<"*";
}
cout<<endl;
for(int j=1;j<=c;j++){
cout<<"*";
}
cout<<endl;
for(int j=1;j<=d;j++){
cout<<"*";
}
cout<<endl;
for(int j=1;j<=e;j++){
cout<<"*";
}
cout<<endl;
for(int j=1;j<=f;j++){
cout<<"*";
}
cout<<endl;
for(int j=1;j<=g;j++){
cout<<"*";
}
cout<<endl;
return 0;
}
读取7个数打印*c++
最新推荐文章于 2024-08-26 23:43:19 发布