miércoles, 5 de noviembre de 2008

Practica 6 Problema 4


string Nombre;
int CAL1, CAL2, CAL3, Promedio;
CAL1 = CAL2 = CAL3 = Promedio = 0;
Nombre = " ";
Nombre = textBox1.Text;CAL1 = int.Parse(textBox2.Text);
CAL2 = int.Parse(textBox3.Text);
CAL3 = int.Parse(textBox4.Text);
Promedio = (CAL1 + CAL2 + CAL3) / 3;
textBox5.Text = Promedio.ToString();
if (Promedio >= 7)MessageBox.Show(textBox1.Text + " APROVADO ");
elseMessageBox.Show(textBox1.Text + " NO APROVADO ");
}
private void CLEAR_Click(object sender, EventArgs e)

No hay comentarios: