double amount; double rate; double years; double total; amount = Convert.ToDouble(textBox1.Text); rate = Convert.ToDouble(textBox2.Text); years = Convert.ToDouble(textBox3.Text); rate = rate / 100; total = amount * 1 + Math.Pow(rate, years); label1.Text = total.ToString();
Quote:total = amount * 1 + Math.Pow(rate, years);
total = amount * Math.Pow(1 + rate, years);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)