[Solved] What is the Recursive case? void recurPrt(int n); int main ( recurPrt(3); system(“Pause”); return 0; ) void recurPrt(int n) ( if (n != 1) // Line 1 ( cout << "Hip\n"; //Line

What is the Recursive case?

void recurPrt(int n);
int main
(
recurPrt(3);
system(“Pause”);
return 0;
)
void recurPrt(int n)
(
if (n != 1) // Line 1
(
cout << "Hip\n"; //Line 2 cout << "Hip\n"; //Line 3 cout << "\nDone?\n" << endl; // Line 4 recurPrt(n - 1); // Line 5 cout << "\nHorray! " << n << endl; // Line 6 cout << "\nAgain?\n" << endl; // Line 7 ) else cout << "Yeah\n"; //Line 8 )

Leave a Reply

Your email address will not be published. Required fields are marked *