teddy8 Full Stack Software Engineer

CodeUp - 기초100제(1074)

2019-06-20
teddy8

문제

URL : https://codeup.kr/problemsetsol.php?psid=23


소스코드

// 정수 1개 입력받아 카운트다운 출력하기
// input  : 5
// output : 5
//			4
//			3
//			2
//			1
#include <iostream>

using namespace std;

int main()
{
	int n;
	cin >> n;

	for (int i = n; i > 0; i--)
		cout << i << endl;

	return 0;
}


Comments

Content