换行出错!求助
为什么会是5个换行而不是10个换行?#include "stdio.h"
#include "conio.h"
void main()
{
int i,x,j=1;
scanf("%d",&x);
for(i=1;i<=x;i++,j++)
{
if(i%2!=0)
printf("%d ",i);
if(j%10==0)
printf("\n");
}
getch();
}
2007-07-20 10:58
2007-07-20 11:27
2007-07-20 15:15
2007-07-20 15:15
2007-07-20 17:19
2007-07-20 19:14
2007-07-20 22:34
2007-07-20 22:34