It runs, but nothing shows in the console window upon execution.
Here is the code
#include <iostream>
using namespace std;
int x;
void recurse();
int main()
{
x = 0;
recurse();
char end; // This is my ending sequence to prevent program from closing immediately
cin >> end;
cin.ignore(end);
return 0;
}
void recurse()
{
x = x + 1;
if(x = 11){
return;}
else{
cout << x << "\n";
recurse();
}
}
That's my code basically. I would appreciate to know what went wrong with my code. Thank you!