10.10作业2

#include<iostream>
using namespace std;
int main(){
    int i,j;
    for(i=1;i<=10;i++){
        for(j=1;j<=i;j++){
        cout<<"*";
        }
        cout<<endl;
    } 
    
}

输出一个由 * 符号所组成的三角形,要求第一行一个 * ,第二行 两个 * 第三行 三个 * 依次类推,最后一行10个 *。使用双重for循环完成。

原文地址:https://www.cnblogs.com/sanyeai/p/7654907.html