public static void Main() { Rectangl rect = new Rectangl(2, 3); Console.WriteLine(rect.Area); }
private void button1_Click(object sender, EventArgs e) { Rectangl rectangle = new Rectangl(textBox1.Text, textBox2.Text); label4.Text = rectangle.Diagonal() + " "; }