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