ожидаемый результат, если я положу 100, 0,10, 10 (10 лет), должен быть 259,37 фунтов стерлингов, но я получаю 100,00000001000001
using System;
using System.Security.Cryptography;
namespace compound_intrest
{
class Program
{
static void Main(string[] args)
{
Console.Write("Please enter the ammount of money that is being compounded! ");
double P = Convert.ToDouble(Console.ReadLine());
Console.Write("Please enter the ammount of Intrest (Write it is 0.10 for 10% etc!! ");
double MP2 = Convert.ToDouble(Console.ReadLine());
Console.Write("Please enter the ammount of Years");
double Y = Convert.ToDouble(Console.ReadLine());
double MP1 = Convert.ToDouble(Math.Pow(MP2, Y));
double MP = (MP1) + 1;
double A = (P) * (MP);
Console.WriteLine(A);
}
}
}