Hey all, having some difficulties with a homework assignment. Need to use the power/exponent function for squares and cubes as seen below but I am unable to use the pow function. It shows up red everytime I type it in, no matter what I add or remove. Not sure what to do now, need to get this done though.
#include <iostream>
#include <cmath>
#include <iomanip>
#include <math.h)
using namespace std;
int main()
{
int numBase = 0;
cout << "Number" << "\tSquare" << "\tCube" << endl;
cout << numBase << "\t" << numBase << "\t" << numBase << endl;
numBase += 1;
cout << numBase; << "\t" << numBase = pow
return 0;
}
Thanks!