Untitled
unknown
c_cpp
a year ago
344 B
4
Indexable
#include <iostream> #include <set> #include <algorithm> using namespace std; void rec(int x) { if(x == 0) { return; } if(x % 2 == 0) { 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