求助 为什么输出结果是双排的
# include <stdio.h>int main(void)
{
int i, sum;
sum = 0;
for (i = 1; i <= 10; ++i)
{
sum = sum + 1;
printf ("%d %d\n", i, sum);
}
return 0;
}
/*
----------------------------------------
1 1
2 2
3 3
4 4
5 5
6 6
7 7
8 8
9 9
10 10
----------------------------------------
*/