Codeup.kr/Lang-C
[Code up 문제] 1251번 1 부터 100까지 출력하기
Jongung
2021. 9. 15. 15:24
1. 정답 코드
#include <stdio.h>
int main(void) {
for(int i=1; i<=100; i++){
printf("%d ", i);
}
}
2. 코드 설명
for문을 사용하여 1~100까지 공백을 두고 출력하면 되는 간단한 문제이다.