now I have 3 textboxes that the user can type in them his degrees and the average will be calculated and displayed in another textbox! I've made the result to show just two fractional digits by calling the Math.Round() Method This is my code:
double Sum = int.Parse(textBox1.Text) + int.Parse(textBox2.Text) + int.Parse(textBox3.Text);
double Avg = Sum / 3;
textBox4.Text = Math.Round(Avg, 2).ToString();
My problem is whenever the average is equal to an integer number like 20, I want it to display 20.00