You need to implement a recursive function namely Apowerfun Solution

You need to implement a recursive function namely Apowerfun. Apowerfun is a
power function which receives the value of a real number “a” raised to the
power of a non negative integer “n”.
Write a header file which that you will call Apower.h. The file contains a
recursive method Apowerfun that has two parameters:
1- First parameter is a of type float
2- Second parameter is n of type long
and returns the an
value as a float.
Write a C++ file which you will call Apower.cpp that reads in a long non
negative number n, and a float number a, and prints the corresponding a
n
number.
Powered by