I used pow() function with a variable and I found some error

Code:
for (i=0;i<3;i++)
  pow(5,i);
Well, this kind of things are not working with pow() functions.. Is there any way to solve this issue.