Good Afternoon,
I'm having some problems with a problem that deals with raising the power of an integer. So far I have this code.
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
int num, bigNum, power, count;
cout << "Enter an integer: ";
cin>>num;
cout << "What power do you want it raised to? ";
cin>>power;
bigNum = num;
while(count++ < power)
bigNum *= num;
cout << "The result is " <<bigNum<<endl;
return 0;
}