- = 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
- = 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;