提交时间:2019-10-13 21:22:27
运行 ID: 1592
#include<iostream> int main(){ int i=1,j=0,k=1,n; scanf("%d",&n); while(i<=n){ while(j<k-1){ printf(" "); j++; } while(k<=n*2-i*2+1){ printf("#"); k++; } j=0; k=1; i++; printf("\n"); } }