Page 1 of 1

- = Predict the Output What will each of the following program segments display? 39. int myPower Function(int num, int p

Posted: Mon May 09, 2022 6:02 am
by answerhappygod
Predict The Output What Will Each Of The Following Program Segments Display 39 Int Mypower Function Int Num Int P 1
Predict The Output What Will Each Of The Following Program Segments Display 39 Int Mypower Function Int Num Int P 1 (39.16 KiB) Viewed 16 times
- = Predict the Output What will each of the following program segments display? 39. int myPower Function(int num, int power) { answer = 1; for (int count = 1; count <= power; count++) answer = answer * num; return answer; } A) cout << myPower Function (2, 3) << endl; B) cout << myPower Function(3, 2) << endl; C) cout << myPower Function (2.5, 2) << endl;