Untitled

mail@pastecode.io avatar
unknown
c_cpp
a month ago
310 B
0
Indexable
Never
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
void qwe(int n)
{
    if (n == 1)
    {
        cout << 1 << endl;
    }
    else
    {
        cout << n << endl;
        qwe(n - 1);
    }
}

int main()
{
    int n;
    cin >> n;
    qwe(n);
    return 0;
}
Leave a Comment