﻿using System;

namespace Task02
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.Write("Enter first side: ");
            double s1;
            double.TryParse(Console.ReadLine(), out s1);

            Console.Write("Enter second side: ");
            double s2;
            double.TryParse(Console.ReadLine(), out s2);
            
            Rectangle rec = new Rectangle(s1, s2);
            Console.WriteLine(new string('-', 20));
            Console.WriteLine("Area: " + rec.Area);
            Console.WriteLine("Perimeter: " + rec.Perimeter);

            Console.ReadKey();
        }
    }
}
