Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace _03.DepositCalculator
- {
- class Program
- {
- static void Main(string[] args)
- {
- double deposit = double.Parse(Console.ReadLine());
- int monthlyDeposit = int.Parse(Console.ReadLine());
- double yearlyInterest = double.Parse(Console.ReadLine());
- double accuredInterest = deposit * yearlyInterest/100;
- double interestPerMonth = accuredInterest / 12;
- double total = deposit + (3 * (monthlyDeposit * interestPerMonth));
- double sum = deposit + monthlyDeposit * (deposit * (yearlyInterest/100))/12;
- Console.WriteLine(sum);
- }
- }
- }
Add Comment
Please, Sign In to add comment