int base;
int exp;
int answer = 1
for(int i = 0; i<n; i++)
{answer*=base}
This code above works, I just don't understand the functionality. "answer*=ba se" doesn't seem to have anything to do with "i" or "exp". I don't understand the logic behind it all.
int exp;
int answer = 1
for(int i = 0; i<n; i++)
{answer*=base}
This code above works, I just don't understand the functionality. "answer*=ba se" doesn't seem to have anything to do with "i" or "exp". I don't understand the logic behind it all.
Comment