Run ID:120365

提交时间:2025-05-25 14:42:49

#include<iostream> using namespace std; int main(){ int a,b=0; cin>>a; for(int i=1;i<=a;i++){ //1 4 2 3 3 2 4 1 5 0 for(int q=1;q<=a-b;q++){ cout<<" "; } b++; for(int h=1;h<=b;h++){ cout<<"*"; } cout<<endl; } return 0; }