0

Please help me to create a LOOP AND SOLVE THE LOAN problem...

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

30th Mar 2021, 11:31 AM
KISI BI SUBJECT
KISI BI SUBJECT - avatar
8 Answers
+ 3
KISI BI SUBJECT Where is your attempts?
30th Mar 2021, 11:41 AM
AĶ¢J
AĶ¢J - avatar
+ 3
KISI BI SUBJECT Show your code otherwise how I will tell what is problem.
30th Mar 2021, 11:54 AM
AĶ¢J
AĶ¢J - avatar
+ 2
Hint :- Use a loop to calculate the amount for every year till 6. Always try to get the ceiling value of the amount and convert it to int
30th Mar 2021, 1:12 PM
Atul [Inactive]
+ 1
Bro.. I tried while doing coding in this app. But, always it is wrong and I forgot to post my 32 attempts in this question. So, sorry bro but please pleasešŸ™help me.. Even now also I am trying a lot.....
30th Mar 2021, 11:49 AM
KISI BI SUBJECT
KISI BI SUBJECT - avatar
0
What a language u interesting?
30th Mar 2021, 12:44 PM
Š˜Š»ŃŒŃ ŠœŠøрŠ¾ŃˆŠ½ŠøŠŗ
Š˜Š»ŃŒŃ ŠœŠøрŠ¾ŃˆŠ½ŠøŠŗ - avatar
0
KISI BI SUBJECT public class Program { public static void main(String[] args){ int x =20000; int y =x/10 ; System.out.println(y); for ( int z= x-y;z>0;z=z+0) { System.out.println(z); } } }
31st Mar 2021, 11:31 AM
KISI BI SUBJECT
KISI BI SUBJECT - avatar
0
Bro this my attempt..... public class Program { public static void main(String[] args){ int x =20000; int y =x/10 ; System.out.println(y); for ( int z= x-y;z>0;z=z+0) { System.out.println(z); } } }
31st Mar 2021, 11:32 AM
KISI BI SUBJECT
KISI BI SUBJECT - avatar
0
I no theory but i am not able to apply it in practical.. public class Program { public static void main(String[] args){ int x =20000; int y =x/10 ; System.out.println(y); for ( int z= x-y;z>0;z=z+0) { System.out.println(z); } } }
31st Mar 2021, 11:34 AM
KISI BI SUBJECT
KISI BI SUBJECT - avatar