Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Deposit_Calculator
- {
- class Program
- {
- static void Main(string[] args)
- {
- double depositAmount = double.Parse(Console.ReadLine());
- double termDepositMonths = double.Parse(Console.ReadLine());
- double yearPercent = double.Parse(Console.ReadLine());
- double Amount = depositAmount + termDepositMonths * ((depositAmount * yearPercent) / 12);
- Console.WriteLine($"{Amount:f2}");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement