题解 | #数字三角形#
数字三角形
http://www.nowcoder.com/practice/804a22929b844e6b9379a5e90b5e2197
include<stdio.h>
int main()
{
int a = 0;
while (~scanf("%d", &a))
{
for (int b = 1; b <= a; b++)
{
for (int c = 1; c <=b; c++)
{
printf("%d ", c);
}printf("\n");
}
}return 0;
}