0

i need solution of project "19" in java

.

16th Aug 2022, 2:37 PM
Mostafa Yasser
Mostafa Yasser - avatar
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.
16th Aug 2022, 4:13 PM
A͢J
A͢J - avatar
0
Hi! Please, show us your try. Thx!
16th Aug 2022, 2:44 PM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
16th Aug 2022, 2:45 PM
Mostafa Yasser
Mostafa Yasser - avatar
0
int p= 10/100 * amount; needs to be corrected as payment needs to be calculated from remaining amount , R in your case
16th Aug 2022, 4:19 PM
Prathyusha Muppidi
Prathyusha Muppidi - avatar