星图1

来源:互联网 发布:在sql的select语句中 编辑:程序博客网 时间:2024/05/01 06:18
#include <iostream>
using namespace std;
int main()
{
    for(int i=1;i<=7;i++)
    {
        for(int j=1;j<=i-1;j++)
            cout<<' ';
        for(int j=1;j<=7-i;j++)
            cout<<"* ";
        cout<<endl;
    }
}
0 0