Functions Exercise
Functions Exercise
Write a function called power() that takes a double value for n and an int value
for p and
returns the rseult as a double value. Use a default argument of 2 for p , so that
if this argument is omitted, the number n will be squared. write a main() function
that gets values from the user to test this funtion.