User Profile
Collapse
-
well thank you -
OMG!! it works!!! thank you so much for your patience and helpLeave a comment:
-
it still isnt running correctly....
int main()
{
float x=1.0;
float y=1.0;
int e=1;
cout << "What is the base?" << "\n";
cin >> x;
cout << "What is the exponent?" << "\n";
cin >> e;
if (e==0){cout << "Anwser is: 1" << "\n";}
else...Leave a comment:
-
-
first part says the part to keep looping, and the second part tells it how to loop itLeave a comment:
-
int main()
{
float x=1.0;
float y=1.0;
int e=1;
cout << "What is the base?" << "\n";
cin >> x;
cout << "What is the exponent?" << "\n";
cin >> e;
for (int i=1; i<=e; i++)
{
x=e;
y=y*x;
}
cout << "Answer is:" <<...Leave a comment:
-
-
-
-
-
-
-
-
yes, telling the computer to multiply the bases until its equal to the exponentLeave a comment:
-
-
-
whatever the exponent is is how many times you multiply the baseLeave a comment:
-
-
c increments it and d is what is actually going to be reapeted but im not sure what b doesLeave a comment:
-
so am i putting an equation in my for loop? or doea the equation go outside the loop?Leave a comment:
No activity results to display
Show More
Leave a comment: