提交时间:2019-10-18 20:43:04

运行 ID: 1687

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