0
i need solution of project "19" in java
.
4 odpowiedzi
+ 1
Mostafa Yasser
You have to get remaining amount so everytime you have subtract to 10 % amount from previous amount.
Final amount should be print only once.
Don't print anything else because test cases only understand final result.
If test case out is 100 and you print "amount is 100" then how your output will be validate with test case output.
0
Hi! Please, show us your try. Thx!
0
int p= 10/100 * amount; needs to be corrected as payment needs to be calculated from remaining amount , R in your case