求大神幫助,第五題求源碼,不太會寫⋯⋯⋯⋯⋯⋯⋯⋯⋯⋯⋯⋯⋯⋯⋯⋯⋯⋯⋯⋯
放5個文本框,在1 2 3依次輸入p r n,放一個按鈕,雙擊編寫
double p = double.Parse(textBox1.Text);
double r = double.Parse(textBox2.Text);
int n = double.Parse(textBox3.Text);
double 月付款 = p * r / (1 - (1 + r) * (1 + r));
double 總付款 = 月付款 * n;
textBox4.Text = 月付款.ToString();
textBox5.Text = 總付款.ToString();