0

Can anyone solve this

remainamount = amount - (int)(amount* 0.01 ); System.out.println(remainamount);

16th Mar 2022, 5:33 PM
Ebrahim Lotfy
Ebrahim Lotfy - avatar
5 Answers
+ 1
Yes, you can. You must only make a loop that runs your calculation three times. And after the loop, you print. This is for the loan calculator isn't it?
16th Mar 2022, 6:29 PM
Paul
Paul - avatar
+ 1
You only need a simple loop and your calculation looks a bit wrong. You calculate 1% it should be 10%.
16th Mar 2022, 6:57 PM
Paul
Paul - avatar
0
Yes, it is for loan calculator
16th Mar 2022, 6:45 PM
Ebrahim Lotfy
Ebrahim Lotfy - avatar
0
OK, but still some problems, I can't solve it, can you show me the code??
16th Mar 2022, 6:48 PM
Ebrahim Lotfy
Ebrahim Lotfy - avatar
0
OK, thank you
16th Mar 2022, 7:11 PM
Ebrahim Lotfy
Ebrahim Lotfy - avatar