5

# Loan calculator

How I can calculate loan code?

3 Answers

+ 13

First you can declare amount as an input variable.
Then, you need to calculate 10% of the current amount and subtract that 10% from the current amount by running a loop for 3 times.
Finally, you can get output outside loop.
By the way, I gave some hints. Try to finish it yourself. Show your try if you can't solve it anymore.

5

0

6

I need help on how to code a simple calculator

Hot today

What is indentations... ?

6 Votes

int num = 2;
int x = 3;
if(num >= 2) {
if(x > 4) { num = 3; }
else { num = 4; }
}
else {x = 1; }

1 Votes

Need solution

0 Votes

About Java McQ

0 Votes

Need solution

0 Votes

YouTube Link Finder

0 Votes