0

Can somebody help me with this code?It does not run correctly

https://code.sololearn.com/cufBsty3D5XS/?ref=app

21st Feb 2020, 2:11 PM
Ayaan Siddiqui
2 odpowiedzi
+ 6
https://code.sololearn.com/cR41MoO38BrO/?ref=app
21st Feb 2020, 2:21 PM
༼ つ ◕_◕ ༽つ
༼ つ ◕_◕ ༽つ - avatar
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
21st Feb 2020, 2:40 PM
zemiak