Untitled
unknown
c_cpp
2 years ago
310 B
4
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