EOF(End Of File) : 파일 끝 조건을 위한 컴퓨터 용어, 보통 -1값을 가짐 https://ko.wikipedia.org/wiki/%ED%8C%8C%EC%9D%BC_%EB%81%9D 입력이 끝날 때까지 A+B를 출력하는 문제이다. '입력이 끝날 때'를 구현하기 위해 EOF를 이용하는 것이다. 두 정수의 입력(scanf)이 EOF가 아닌 동안 반복 #include int main() { int a; int b; int result; while (scanf("%d %d", &a, &b)!=EOF){ result = a + b; printf("%d\n", result); } return 0; } 두 정수의 입력(scanf)이 -1(EOF의 표현값)이 아닌 동안 반복 #include int main..