0
已解决
朱睿祥
中级守护
中级守护
为啥是0分,请各位大佬请教!!
#include<iostream>
#include<string>
#include<cstdio>
#include<cmath>
#include<ctime>
#include<cstring>
using namespace std;
int n,f;
int main()
{
int s=2*n-1;
cin>>n;
for (int i=1;i<=n;i++)
{
for (int j=1;j<=f;j++)
{
cout<<" ";
}
for (int d=1;d<=s;d++)
{
cout<<"*";
}
s-=2;
f++;
cout<<endl;
}
}