Advertisement
spasnikolov131

Untitled

Jun 8th, 2020
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. using System;
  2.  
  3. namespace Deposit_Calculator
  4. {
  5. class Program
  6. {
  7. static void Main(string[] args)
  8. {
  9. double depositAmount = double.Parse(Console.ReadLine());
  10. double termDepositMonths = double.Parse(Console.ReadLine());
  11. double yearPercent = double.Parse(Console.ReadLine());
  12.  
  13. double Amount = depositAmount + termDepositMonths * ((depositAmount * yearPercent) / 12);
  14. Console.WriteLine($"{Amount:f2}");
  15. }
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement