Programming/PS
[BOJ] C언어 2741 N 찍기
yoiii
2020. 12. 21. 03:11
BOJ C언어 2741 N 찍기 문제풀이
난이도 : BRONZE3
문제
입력
출력
소스코드
#include <stdio.h>
int main()
{
int testCase = 0;
scanf("%d", &testCase);
int i;
for (i = 0;i < testCase;i++) {
printf("%d\n", i + 1);
}
return 0;
}
2741번: N 찍기
자연수 N이 주어졌을 때, 1부터 N까지 한 줄에 하나씩 출력하는 프로그램을 작성하시오.
www.acmicpc.net