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