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