0

can someone explain to me how this code works?

#include <iostream> using namespace std; void me(int j){ if(j>1){ me(j-1); } cout<<j<<" "; } int main() { int x=99; me(x); return 0; }

21st Nov 2017, 1:47 PM
Mind To Machine 💻🕆
Mind To Machine 💻🕆 - avatar
1 Resposta
+ 5
This program is an example of recursion. It will print numbers 99 - 2
21st Nov 2017, 2:11 PM
Cool Codin
Cool Codin - avatar