You seem to be asking how to calculate n to the third, right? While pow() can work, it is a wasteful function for calculating n * n * n.
You seem to be asking how to calculate n to the third, right? While pow() can work, it is a wasteful function for calculating n * n * n.