# Answer to Question #62891 in C++ for Daniel Greef

Question #62891

Hi uhm... Could you help me make a program that will simulate the base and exponent

Example: base = 2 and exponent = 3

for ( exponent; exponent >0;)

{

exponent = exponent - 1;

base = base * base;

cout << base;

}

Final output = 8

BUT now I need it using functions, and it's damn hard. I cannot use while, do while, or for.

Only functions.

Example: base = 2 and exponent = 3

for ( exponent; exponent >0;)

{

exponent = exponent - 1;

base = base * base;

cout << base;

}

Final output = 8

BUT now I need it using functions, and it's damn hard. I cannot use while, do while, or for.

Only functions.

Expert's answer

Dear Daniel Greef, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed:

**Submit order**Need a fast expert's response?

Submit orderand get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

## Comments

## Leave a comment