-
-
4#include<iostream> #include<cstdio> #include<cstdlib> #include<cmath> #include<string> #include<algorithm> using namespace std; int main(){ int a,n,b,c,d,m; cin>>n; m=n/2; for(a=1;a<=m;a++){ for(b=1;b<m-a+3;b++){ cout<<" "; } for(b=1;b<a*2;b++){ cout<<"*"; } for(b=1;b<=n-a*2;b++){ cout<<" "; } for(b=1;b<a*2;b++){ cout<<"*"; } cout<<endl; } for(a=1;a<=n;a++){ for(b=0;b<=a-1;b++) cout<<" "; for(b=1;b<=n*2-a*2+1;b++) cout<<"*"; cou
-
5欢迎来到江苏省天一中学编程吧,本吧欢迎所有天一热爱编程的小伙伴。希望大家积极写程序发帖,更重要的是上传资源。让我们一起减少群里找不到缺省源或者程序下载地址这样简单却又麻烦的问题出现!
-
2#include<iostream>#include<cstdio>#include<cstdlib>#include<cmath>#include<string>#include<algorithm>using namespace std;int main(){ return 0;}