Untitled

 avatar
unknown
c_cpp
a year ago
310 B
2
Indexable
#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;
}
Editor is loading...
Leave a Comment