https://en.cppreference.com/w/c/io/fscanf
All conversion specifiers other than [, c, and n consume and discard all leading whitespace characters (determined as if by calling isspace) before attempting to parse the input.
%d 포맷으로 scanf를 실행할 경우, 지금 읽어야 하는 파일 위치부터 연속으로 등장하는 whitespace를 모두 읽어서 버립니다.

0124yongsang 2년 전
첨부한 코드대로 제출 시, 맞았다고 나옵니다.
그러나 3,4를 입력하였다고 가정 할 경우 a에는 정상적으로 3이 저장되지만 b는 입력버퍼에 남아있던 개행문자가 저장되는 것 아닌가요?
중간에 입력 버퍼를 비우기 위해서 scanf사이에 getchar()이 필요하다고 생각되는데.. 피드백 주시면 감사하겠습니다.