提交时间:2019-10-07 16:20:53

运行 ID: 1350

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