using System;
using System.Drawing;
using System.Windows.Forms;
namespace triangle_area
{
public partial class title : Form
{
public title()
{
InitializeComponent();
}
private void button_Click(object sender, EventArgs e)
{
if (!string.IsNullOrEmpty(len_a.Text.Trim()) && !string.IsNullOrEmpty(len_b.Text.Trim()) && !string.IsNullOrEmpty(len_c.Text.Trim()))
{
double a, b, c;
a = double.Parse(len_a.Text);
b = double.Parse(len_b.Text);
c = double.Parse(len_c.Text);
if (a + b > c && a + c > b && b + c > a)
{
pictureBox1.Refresh();
double p = (a + b + c) / 2;
double s = Math.Sqrt(p * (p - a) * (p - b) * (p - c));
resul