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; std::cin >> N; while(true) { printf("%d\n", N); if(N--==1) break; } return 0; } | cs |
'C & C++ > Baekjoon' 카테고리의 다른 글
백준 2908 - 상수 (0) | 2017.12.27 |
---|---|
백준 2839 - 설탕 배달 (0) | 2017.12.27 |
백준 2741 - N 찍기 (0) | 2017.12.27 |
백준 2739 - 구구단 (0) | 2017.12.27 |
백준 2675 - 문자열 반복 (0) | 2017.12.27 |