Question: Write a function power that takes two parameters: x ( double ) and y ( int ) , and returns the value x y for
Write a function power that takes two parameters: double and int and returns the value for integer y Make sure that your function works correctly. for both positive and negative values of Your main function should ask user input for and call power function, and display the result value Results displayed should have digits fraction part. DON NOT USE THE MATH POW FUNCTION.
Example : if function parameter x is function parameter y is then the power function should return the result ie
Example : if function parameter x is function parameter y is then the power function should return the result ie
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
