提交时间:2019-10-13 10:40:20

运行 ID: 1528

#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; }