提交时间:2019-10-29 20:04:23
运行 ID: 1901
#include<iostream> int main(){ int n,i=1; scanf("%d",&n); while(i<=n){ int kg=1; while(kg<=i-1){ printf(" "); kg++; } int jin=1; while(jin<=2*(n-i)+1){ printf("#"); jin++; } printf("\n"); i++; } return 0; }