Untitled

 avatar
unknown
c_cpp
a year ago
308 B
3
Indexable
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
void qwe(int n)
{
    if (n == 1)
    {
        cout << 1 << endl;
    }
    else
    {
        qwe(n - 1);
        cout << n << endl;
    }
}
int main()
{
    int n;
    cin >> n;
    qwe(n);
    return 0;
}
Editor is loading...
Leave a Comment