It uses a recursion function to find the power of int ^ itn ..Well the output is not right where is the problem i never did read the recursion part of the book and know i have to suffer ...
int power ( int, int );
int base, exp;
scanf( "%d%d", &base, &exp );
printf( "awn == %d\n", power( base, exp ) );
int power ( int base, int exp )
if ( exp == 1 )
return ( power( base, exp -1 ) * base );
if i enter 2 ^ 4 it gives me 8 instead of 16 ???