Write a program that will ask the user for two integer numbers.
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.
1
Expert's answer
2012-07-26T08:32:57-0400
// power.cpp : Defines the entry point for the console application. //
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
Finding a professional expert in "partial differential equations" in the advanced level is difficult.
You can find this expert in "Assignmentexpert.com" with confidence.
Exceptional experts! I appreciate your help. God bless you!
Comments
Leave a comment