Advertisement
IvanITD

03.DepositCalculator

Jan 14th, 2024
559
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.25 KB | Source Code | 0 0
  1. double deposit = double.Parse(Console.ReadLine());
  2. int term = int.Parse(Console.ReadLine());
  3. double AnualInterestRate = double.Parse(Console.ReadLine());
  4.  
  5. double sum = deposit + term * ((deposit * (AnualInterestRate / 100)) / 12);
  6.  
  7. Console.WriteLine(sum);
Tags: C#
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement