728x90
반응형
문제 : http://www.jungol.co.kr/bbs/board.php?bo_table=pbank&wr_id=179&sca=1070
문제
10부터 20까지의 숫자를 차례대로 출력하는 프로그램을 작성하시오.for문을 사용하세요.
출력 예
10 11 12 13 14 15 16 17 18 19 20
코드 :
# include <stdio.h>
int main()
{
int i;
for(i=10; i<=20; i++)
printf("%d ",i);
return 0;
}
728x90
반응형
최근댓글