提交时间:2019-10-19 21:58:12

运行 ID: 1772

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