Describe about power function


Problem:

Question: Write a function called ‘power' that takes two integers, a base and an exponent and compute the power.

For example, when this function is called with base=2 and exponent=4, it computes 2^4=16. Your function should work when the exponent is negative, zero or positive.

Include the ‘main' function in your code and show how the ‘main' functions called the ‘power' function.

Please describe in detail with an example.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Describe about power function
Reference No:- TGS0891081

Expected delivery within 24 Hours