请问我错在哪里
class power{
static double power(double x,int n)
{
if(n>1)
return x*power(x,n-1);
}
public static void main(String[] args)
{
System.out.println("5 is to power 5 is :" + power.power(5.0,5));
}
}
2008-10-22 16:22
2008-10-22 17:05
2008-10-22 17:10
2008-10-22 17:13
2008-10-22 17:13
2008-10-22 17:24
2008-10-24 21:00
2008-10-25 10:37
2008-10-25 10:59