Untitled
unknown
c_cpp
2 years ago
308 B
16
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