#include<stdlib.h>
#include<stdio.h>
main()
{
int i,j;
char c[10];
FILE *fp;
if((fp=fopen("10000.txt","w"))==NULL)
printf("error");
for(i=0;i<=99;i++)
{
for(j=1;j<100;j++)
{
if(j==99)
{
sprintf(c,"%d\n",100*j+i);
fwrite(c,strlen(c),1,fp);
}
else
{
sprintf(c,"%d,",100*j+i);
fwrite(c,strlen(c),1,fp);
}
}
}
fclose(fp);
}