c+ s HOW what is OUTPUT HERE when this CALL is made from Main #include using namespace std; void recurPrt( int n ); int main() { recurPrt(2); system( "Pause" ); return 0; } void recurPrt( int n ) {...



c+ s





HOW what is OUTPUT HERE when this CALL is made from Main





#include



using
namespace

std;






void

recurPrt(

int
n
);






int

main()



{



            recurPrt(2);






            system(
"Pause"
);





return

0;



}






void

recurPrt(

int
n
)



{





if

(

n

!= 1)

// Line 1



            {



                        cout


"Hooray\n"
;

//Line 2





cout


"\nHorray! "

n


endl;

//6



                        cout


"Hip\n"
;

//Line 4



                        cout


"\nDone?\n"


endl;

//4



                        recurPrt(
n

- 1);

//5



                        cout


"\nAgain?\n"


endl;

//7



            }





else

cout


"Yeah\n"
;

//Line 2



}



Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here