<=Back
Write a C++ program that would define a class named power with the following properties:
Data member:
•product
Member function:
•power;
•calculate_power. (using for loop control structure)
The program should then accept two integer values (x and y) and determine the value of xy through the use of the member function calculate power. The program should then output the results
 Viewed: 484 times
Share in: