0
Exercise 20 java ( Loan Calculator)
Someone has completed Java exercise 20, which is about a loan calculator, because if I use only whole numbers it gives me an error in the results. Thank you.
6 Respuestas
+ 1
Share your code (save to playground and share link) with a description of your issue(s) and/or error(s) so we can help you figure out what is wrong.
+ 1
Ya it's a rounding issue. You can resolve it by using a couple of variants of variables, 1 int and 1 double, and doing a check between the 2, taking the greater, or you can use the ceil() method in the math library.
+ 1
I just tried it and it works perfectly, I hadn't realized it, thank you very much !!!!
0
my result is 53145 and the exercise tells me that if you put 100000, the result should be 53144.