2) (6 pts) Reference parameters: Write a function that utilizes reference parame
ID: 645991 • Letter: 2
Question
Explanation / Answer
#include <iostream> using namespace std; int main() { int exp; float base, power = 1; cout << "Enter base and exponent respectively: "; cin >> base >> exp; while (exp != 0) { power *= base; --exp; } cout << "Result = " << power; return 0; } -
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.