返回列表 发帖
FILE *file = fopen("file.txt", "w");
int x, y, i;
printf("Please enter the starting no:");
scanf("%d", &x);
printf("Please enter the ending no:");
scanf("%d", &y);
for(i=x;i<y;i++)
fprintf(file, "%d\, ", i);
fclose(file);
鲜花鸡蛋赠送记录

返回列表