2741번: N 찍기
자연수 N이 주어졌을 때, 1부터 N까지 한 줄에 하나씩 출력하는 프로그램을 작성하시오.
www.acmicpc.net
Comment: for문의 단계별 알고리즘을 잘 이해하고 있으면 쉽게 풀 수 있는 문제
#include <stdio.h>
int main()
{
int n , i;
scanf("%d" , &n);
for(i=1; i<=n; i++)
{
printf("%d\n" , i);
}
return 0;
}