主题:请教各位
Please provide the following summation. Use induction:
0^3 + 1^3 + 2^3 +~~~+ n^3 = (n^2)*(n+1)^2/4的运算
int f(int n)
{
if(x==0)
return 0
else
return (n*n)*((n+1)*(n+1))/4
}
这样写对不对阿?
0^3 + 1^3 + 2^3 +~~~+ n^3 = (n^2)*(n+1)^2/4的运算
int f(int n)
{
if(x==0)
return 0
else
return (n*n)*((n+1)*(n+1))/4
}
这样写对不对阿?