0
Can somebody help me with this code?It does not run correctly
2 Réponses
+ 6
https://code.sololearn.com/cR41MoO38BrO/?ref=app
0
//double A = Math.pow(P * (1 + R / 100 ) , N);
double A = P * Math.pow( 1 + R / 100.0 , N);
// System.out.println("= " + P + "(" + (1 + R / 100 ) + ")^" + N);
System.out.println("= " + P + "(" + (1 + R / 100.0) + ")^" + N);
test input: 1000 10 2
result: 1210 ok