Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class DepositCalculator {
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in);
- double money = Double.parseDouble(scanner.nextLine());
- double months = Double.parseDouble(scanner.nextLine());
- double percent = Double.parseDouble(scanner.nextLine());
- double monthPercent = money * percent / 1200;
- double total = money + months * monthPercent;
- System.out.println(total);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement