c++程序—循环嵌套

#include<iostream>
using namespace std;
#include<string>
#include<ctime>

int main()
{
    //嵌套循环打印星图
    for (int j = 0; j < 10; j++) 
    {
        for (int i = 0; i < 10; i++)
        {
            cout << "* ";
        }
        cout << endl;

    }


    
    system("pause");
    return 0;

}

 

posted @ 2020-02-29 13:44  Jackie_Wang  阅读(686)  评论(0编辑  收藏  举报