Write a function power ( ) to raise a number m to a power n. The 7 function takes a double for m and int value for n, and return the result correctly. Use a default value of 2 for n to make the function to calculate squares when this argument is omitted. Write a main ( ) that gets the values of m and n from the user to
test the function.

Subject Object Oriented Programming
NU Year Set: 1.(d) Marks: 7 Year: 2013
Login to post your comment.