How to raise 5 to: the power of 3

I need some help in writting a for loop tha raises 5 to the power of 3..Can someone please give some advice thx
Sure, 1st you want to add this to the top of your code:

#include <cmath>

As for your power, there's a function for that:

pow(5, 3);

Hope I helped you out some :)
Last edited on
Topic archived. No new replies allowed.