Can somebody help me with this code?It does not run correctly | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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 Answers
+ 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