Exemplo n.º 1
0
        public static void TrapezeAreaChoice()
        {
            Menu.TrapezeAreaMenu();
            string input = Console.ReadLine();

            switch (input)
            {
            case "1":
                Trapeze.TrapezAreaFormula1();
                break;

            case "2":
                Trapeze.TrapezAreaFormula2();
                break;

            case "3":
                Trapeze.TrapezAreaFormula3();
                break;

            case "4":
                break;

            default:
                Console.WriteLine("Wrong Input!");
                TrapezeAreaChoice();
                break;
            }
        }
Exemplo n.º 2
0
        public static void TrapezePerimeterChoice()
        {
            Menu.TrapezePerimeterMenu();
            string input = Console.ReadLine();

            switch (input)
            {
            case "1":
                Trapeze.TrapezePerimeter1();
                break;

            case "2":
                Trapeze.TrapezePerimeter2();
                break;

            case "3":
                break;

            default:
                Console.WriteLine("Wrong Input");
                TrapezePerimeterChoice();
                break;
            }
        }