Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as C by weiwei ( 17 years ago )
#include "stdio.h"
main()
{
double Xpower();
float x; int n; double r;
scanf("%f%d",&x,&n);
r=Xpower(x,n);
printf("Result=%f",r);
}
double Xopwer(x,n)
float x; int n;
{
if(n<=0) return(1);
else return(x*Xpower(x,n-1));
}
Revise this Paste
Parent: 7284