提交时间:2022-07-14 11:59:02

运行 ID: 47251

#include<iostream> int main(){ int a,i=1; scanf("%d",&a); while(i<=a){ int m=1; while(m<=a-i){ printf(" "); m++; } int n=1; while(n<=2*i-1){ printf("*"); n++; } printf("\n"); i++; } return 0; }