10.10作业3

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

#include<iostream>
using namespace std;
int main(){
    int i,j;
    for(i=1;i<=10;i++){
        for(j=10;j>=i;j--){
        cout<<"*";
        }
        cout<<endl;
    } 
    
}
原文地址:https://www.cnblogs.com/sanyeai/p/7654957.html