인프런 알고리즘테스트 문제
56번 재귀함수
풀스택 개발자
2020. 10. 4. 14:40
#include<iostream>
using namespace std;
void routine(int r)
{
if (r < 1)
{
return;
}
routine(r - 1);
cout << r << endl;
}
int main()
{
int n = 0;
cin >> n;
routine(n);
}