My program is to cal. the value of 10^9(output = 1,000,000,000)
is it correct after the line 'for'?

thk.



Code:
#include <math.h>
int aFunctionIterative(int a, int b) {
 
 int i, fact;

 for ( i=1; i<=b ;i++ )
 fact=pow(a,i);

 return fact;
 }

void main() {

 int result;
 result=aFunctionIterative(10,9);

 printf("%d",result);

 getchar();
}