c++ program ….Please don’t use Cmath you most use a loops ofyour choice , implement an exponent function that will ask for abase and an exponent and will display the solution. In the case youget a negative exponent you have to output your answer as 1/n or-1/n in the case of a negative number with an odd exponent. So forexample, 2^3 should return 1/8. Whereas -2^3 should return -8 and-2^-3 should return -1/8 and 2^3 should return 8.
Expert Answer
An answer will be send to you shortly. . . . .