C출력 결과기초 · 10점
234.
다음 C 프로그램의 실행 결과를 쓰시오.
1#include <stdio.h>23int main() {4int n = 20, cnt = 0, last = 0;5for (int i = 1; i <= n; i++) {6if (i % 5 == 0) {7cnt++;8last = i;9}10}11printf("%d %d\n", cnt, last);12return 0;13}
다음 C 프로그램의 실행 결과를 쓰시오.
1#include <stdio.h>23int main() {4int n = 20, cnt = 0, last = 0;5for (int i = 1; i <= n; i++) {6if (i % 5 == 0) {7cnt++;8last = i;9}10}11printf("%d %d\n", cnt, last);12return 0;13}