#include <stdio.h>
#include <conio.h>

void main()
{

 char ask = getch();
 if(ask=='r')
 {
  FILE* fp = fopen("list5.txt", "r");
  int road;
  for(int i=0; i<10; i++)
  {
  // if(?????) continue;
   fscanf(fp, "%d", &road);
   printf("%d ", road);
  }
 }


 FILE* fp = fopen("list5.txt", "a");
 while(true)
 {
  int num = getch()-48;

  fprintf(fp, "%d ", num);
 }
}









입력된만큼만 출력하고 싶어서, 입력 안된 차례에는 continue 처리를 하고 싶은데, 그게 잘 안되네요


어떻게 하면 될지 조언좀 해주삼