Answer to Question #12349 in C++ for Liliana Hernandez
Use a “for” loop to raise the first number to the power of the second number.
I recommend using the long type instead of int type.
Display the answer to the screen.
Add a “while” loop or “do while” loop around your existing code:
Once the answer has been displayed, ask the user if they want to calculate another. Validate the user's
response to be Y or N or y or n.
cout<<"Enter first number:
cout<<"Enter second number:
you want to calculate another number? (Y/N):
Need a fast expert's response?Submit order
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!