And we also are supposed to make a chart that calculates squares and cubes from 0-5 only using techniques we've learned so far but it seems like the only way to do that is to use stuff we havent learned yet. Any advice?
int x;
cout << "Enter a number you want squared \n";
cin >> x;
cout << x*x;
thats a very easy way to square a number a user enters. i dont know if your trying to make one program that does this though if so it wouldn't be super challenging there are ways of doing it in a simplistic manor. again this would work in visual studios. i dont know what compiler your using