10부터 20까지의 숫자를 차례대로 출력하는 프로그램을 작성하시오.for문을 사용하세요.



 [Copy]
10 11 12 13 14 15 16 17 18 19 20


#include <stdio.h>

int main() {

int a;

for (a = 10; a <= 20; a++) {

printf("%d ",a);

}

return 0;

}

'c언어' 카테고리의 다른 글

정보 올림피아드 - 544  (0) 2016.07.29
정보 올림피아드 - 543  (0) 2016.07.29
정보 올림피아드 - 541  (0) 2016.07.28
정보 올림피아드 - 129  (0) 2016.07.28
정보 올림피아드 - 128  (0) 2016.07.28

+ Recent posts