Untitled
unknown
c_cpp
2 years ago
313 B
8
Indexable
#include <iostream>
#include <set>
#include <algorithm>
using namespace std;
void rec(int x) {
if(x == 0) {
return;
}
cout << x << " ";
rec(x - 1);
}
int main()
{
ios_base::sync_with_stdio(false);
rec(5);
return 0;
}
// rec(5)
// rec(4)
// rec(3)
// rec(2)
// rec(1)
// rec(0)
Editor is loading...
Leave a Comment