Why only 3 test cases are passing in sololearn's Java section's coding challenge of loan calculator? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 4

Why only 3 test cases are passing in sololearn's Java section's coding challenge of loan calculator?

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

27th Nov 2020, 10:18 AM
Mahima Rajvir Singh
Mahima Rajvir Singh - avatar
3 Respostas
+ 2
Mahima Rajvir Singh , try to change line 11 to amount -=(int)Math.ceil(amount*0.1); Also change amount to integer data type.
27th Nov 2020, 10:25 AM
TheWhĀ”teCat šŸ‡§šŸ‡¬
TheWhĀ”teCat šŸ‡§šŸ‡¬ - avatar
+ 2
TheWhĀ”teCat šŸ‡§šŸ‡¬ Thank you so much!! It worked!! šŸ˜ƒšŸ˜„
27th Nov 2020, 10:31 AM
Mahima Rajvir Singh
Mahima Rajvir Singh - avatar
+ 1
Mahima Rajvir Singh , you are welcome šŸ±
27th Nov 2020, 10:31 AM
TheWhĀ”teCat šŸ‡§šŸ‡¬
TheWhĀ”teCat šŸ‡§šŸ‡¬ - avatar