1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | #include <iostream> #include <stdio.h> int main(void) { int N, i=1; std::cin >> N; while(true) { printf("%d\n", i); if(i++==N) break; } return 0; } | cs |
'C & C++ > Baekjoon' 카테고리의 다른 글
백준 2839 - 설탕 배달 (0) | 2017.12.27 |
---|---|
백준 2742 - 기찍 N (0) | 2017.12.27 |
백준 2739 - 구구단 (0) | 2017.12.27 |
백준 2675 - 문자열 반복 (0) | 2017.12.27 |
백준 2577 - 숫자의 개수 (0) | 2017.12.27 |