IT
Undergraduate
Resolved
javaで2乗の和を返すプログラミングを作る時、
static double Squaretotal(double table[], int n){
double total = 0.0;
for (int i=0; i<=n; i++){
total = total + total[i] * total[i];
}
return (total);
}
と作ったのですが思った値が得られません。どこが間違っているのでしょうか。
Answers
Were you able to resolve your confusion?
Users viewing this question
are also looking at these questions 😉
ありがとうございます!