I have 2 textboxes on my form. The 1st takes input, which is then calculated to see if its value is between the for loop and then printed in the 2nd text box. I'm having trouble printing the value after the owed is calculated. I first converted the taxable variable to double and then I'm trying to print the owed in the second box but I can't find what I'm doing wrong. Does anyone have suggestions for what I'm doing wrong? Thanks.
private void btnCalculate_Click(object sender, EventArgs e)
{
double taxable = Convert.ToDouble(txtTaxable.Text);
double owed = Convert.ToDouble(txtOwed.Text);
if (taxable > 0 && taxable < 100)
{
//once the owed is calculated I want it to print in
// the txtOwed.Text
owed = taxable * .1;
//txtOwed.Text = owed.ToString(txtIncome.Text);
}
}