题解 | #带空格直角三角形图案#
带空格直角三角形图案
http://www.nowcoder.com/practice/192d1039c3d44155bb868073f5482670
int main() { int n = 0; while (~scanf("%d", &n)) { int i = 0; int tmp = n; while (tmp--) { for (i = 1; i <= tmp; i++) printf(" "); for (i = 1; i < n-tmp+1 ;i++) printf("* "); printf("\n");
}
}
return 0;
}