Computer Science, asked by dharaniveluswamy123, 10 months ago

What is the output of the program?
#include <iostream>
using namespace std;
void Abc (int x)
if (x<=0)
return;
Abc (x-1);
cout<<x;
Abc (x-1);
}
int main() {
Abc (3);
return 0;
}​

Answers

Answered by shia07
18

Explanation:

include <iostream>

using namespace std;

void Abc (int x)

if (x<=0)

return;

Abc (x-1);

cout<<x;

Abc (x-1);

}

int main() {

Abc (3);

return 0;

}

Similar questions