Notice
Recent Posts
Recent Comments
Creative Code
printOne2Ten2.c (1에서 10까지 출력) 본문
#include <stdio.h>
//for 문으로 1부터 10까지 출력
int main(void)
{
/*
int i =1;
for (; i<=10; ) {
printf("%d\n",i);
++i;
}
*/
int i;
for (i = 1; i<=10; i++){
printf("%d\n",i);
}
return 0;
}
'C Programming' 카테고리의 다른 글
scoreGrade3.c(점수별 학점분류 switch문) (0) | 2023.08.01 |
---|---|
pyramid.c(별 피라미드모양으로 출력) (0) | 2023.08.01 |
printOne2Ten.c(1부터 10까지 출력) (0) | 2023.08.01 |
printA2Z2 (A부터 Z까지 출력) (1) | 2023.08.01 |
printA2Z.c(A부터 Z까지 출력) (1) | 2023.08.01 |