Question: Allow the user to enter the base and exponent and calculate base^exponent. For example, if the user enters 2 and 3 then you need to
Allow the user to enter the base and exponent and calculate base^exponent. For example, if the user enters 2 and 3 then you need to calculate 2^3 which is 8. Do not use math functions instead create your own code to calculate using a loop. 2 raised to 3 power = 2 * 2 * 2 = 8 3 raised to 4 power = 3 * 3 * 3 * 3 = 81
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
