036.程序流程结构-嵌套循环
作者:互联网
#include <iostream> using namespace std; int main() { //利用嵌套循环打印星图 //外层循环,外执行一次,内执行一轮 for (int i = 0; i < 10; i++) { //内层循环 for (int j = 0; j < 10; j++) { cout << " * "; } cout << endl; } system("pause"); return 0; }
标签:10,cout,int,程序流程,++,嵌套循环,循环,036 来源: https://www.cnblogs.com/ceovs/p/15225796.html