#include<stdio.h>
int main()
{
int coef,index,count = 0;
while(scanf("%d%d",&coef,&index) != EOF)
{
if(index)
{
if(count++) putchar(' ');
printf("%d %d",coef * index, index - 1);
}
if (index == 0)
puts("0 0");
}
return 0;
}
后面是输出结果》。。《求大佬指导,为什么第二次输出时候,前面才会多个空格,第一次首位为什么不是空格?