Computer Science, asked by aditya12321, 8 months ago

write a program to calculate the simpleinterest in crore java ​

Answers

Answered by hoangmustang
0

Answer:

CHECK OUT MY SOLUTION:

package newPack;

import java.util.*;

public class interest {

public static void main(String[] args) {

 Scanner input = new Scanner(System.in);

 System.out.println("Please enter the money you give the bank: ");

 double moneyInBank = input.nextDouble();

 System.out.println("Please enter the interest: ");

double interestValue = input.nextDouble();

System.out.println("Please enter the months: ");

int months = input.nextInt();

int u = 0;

double finalValue = 0;

while(u < months) {

double money = moneyInBank * interestValue / 100;

finalValue += money;

moneyInBank += money;

u++;

}

System.out.println("The money you recieve from bank: (not include moneyInBank) = "+finalValue);

}

}

Explanation:

MARK ME BRAINLIEST IF IT HELPS YOU!

Attachments:
Similar questions