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