private void button3_Click(object sender, EventArgs e)
{
Close();
}
private void button2_Click(object sender, EventArgs e)
{
textBox1.Text = "";
textBox2.Text = "";
textBox3.Text = "";
textBox4.Text = "";
}
private void button1_Click(object sender, EventArgs e)
{
double h, L, Area, Volumen;
h = double.Parse(textBox1.Text);
L = double.Parse(textBox2.Text);
Area = 2 * L * (L + 2 * h);
Volumen = (L * L) * h;
textBox3.Text = Area.ToString();
textBox4.Text = Volumen.ToString();
}
private void PrismaCuadrangular_Load(object sender, EventArgs e)
{
}
}
}
No hay comentarios:
Publicar un comentario