반응형
#include <stdio.h>
int main()
{
for (int i=1; i<=10;i=i+1)
{
printf("%d \n",i);
}
}
출력 결과

반응형
'C언어 > 반복문 (for, while)' 카테고리의 다른 글
[C언어] for문 중괄호 생략 (0) | 2022.08.08 |
---|---|
[C언어] For 문 (0) | 2022.03.14 |
[C언어] do while 문 (0) | 2022.03.11 |
[C언어 강의] 24. while 문 (0) | 2022.03.10 |
댓글