+ 1

Questions in description.

You take a loan from a friend and need to calculate how much you will owe him after 3 months. You are going to pay him back 10% of the remaining loan amount each month. Create a program that takes the loan amount as input, calculates and outputs the remaining amount after 3 months. Sample Input: 20000 Sample Output: 10628 Here is the monthly payment schedule: Month 1 Payment: 10% of 20000 = 2000 Remaining amount: 18000 Month 2 Payment: 10% of 18000 = 1800 Remaining amount: 16200 Month 3: Payment: 10% of 16200 = 1620 Remaining amount: 14580

29th Jan 2022, 3:06 PM
★Mr Unknown★
★Mr Unknown★ - avatar
5 Respostas
+ 4
Where is your attempts?
29th Jan 2022, 3:19 PM
A͢J
A͢J - avatar
+ 3
✓♥Gød Õf Thûñdër♥✓ you need to copy your "in lesson" answer into a code bit, save that and then post/attach it here. Then, someone can help you. Also, can you put the programming language in the tags?
29th Jan 2022, 4:08 PM
Ausgrindtube
Ausgrindtube - avatar
+ 1
In lesson
29th Jan 2022, 3:33 PM
★Mr Unknown★
★Mr Unknown★ - avatar
+ 1
G'day ✓♥Gød Õf Thûñdër♥✓ as the others have said, it is best to link your attempt (after copying it into a "code bit") to your original post (edit the post). Also if you can remove the "please" tag but add the language you are working on. Many users have completed the code coach challenges, they could steer you towards the math/functions/algorithms that work for your way of coding. https://www.sololearn.com/discuss/333866/?ref=app
29th Jan 2022, 9:49 PM
HungryTradie
HungryTradie - avatar