Пример #1
0
        public void Run()
        {
            length = InputOutput.CollectDouble("length");

            width = InputOutput.CollectDouble("width");

            CalculateArea();
            InputOutput.OutputResult("area", result);

            CalculatePerimeter();
            InputOutput.OutputResult("perimeter", result);
            width = InputOutput.CollectDouble("length");

            CalculateArea();
            InputOutput.OutputResult(result, "area");

            CalculatePerimeter();
            InputOutput.OutputResult(result, "perimeter");
        }