Exemple #1
0
        public static void Main()
        {
            Rectangl rect = new Rectangl(2, 3);

            Console.WriteLine(rect.Area);
        }
Exemple #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            Rectangl rectangle = new Rectangl(textBox1.Text, textBox2.Text);

            label4.Text = rectangle.Diagonal() + " ";
        }