提交时间:2019-10-13 21:10:26

运行 ID: 1587

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