c++ has a pow() function but it is very heavy because it supports floating point powers, so it has to do a bunch of things that are totally unnecessary for simple squares.
if you wanted x to the pi power, use pow().
if yuo want x squared, a good old fashioned x*x is all you need.
square = num[i] * num[i]; in your code, then.
There seems to be some confusion.
your code's text says:
printf("Enter 10 numbers to start calculating the square root: \n");
but you ask about squares.
Be sure you know what it is you actually want to do here.
Well originally this is translated straight from spanish. Though, we asked our prof. if it was square or square root. He said square root. I'm not sure anymore.