Exemplo n.º 1
0
        }     // end method my other lesson 8 examples

        static void MyLesson8Examples()
        {
            Lesson8 myEight = new Lesson8();

            myEight.BasicIfStatement();
            myEight.BasicIfElseExample();
            myEight.BasicIfElseChainExample();
            Console.WriteLine(myEight.BasicAndConditionExample());
            Console.WriteLine(myEight.BasicOrConditionExample(24));
            myEight.BasicTernaryOperatorExample(42);
            myEight.BasicSwitchExmple(4);
        }     // end method my lesson 8 examples
Exemplo n.º 2
0
        } // end method my lesson 9 examples

        static void MyLesson8Examples()
        {
            Lesson8 myEight = new Lesson8();

            myEight.BasicIfStatement();
            myEight.BasicIfElseExample();
            myEight.BasicIfElseChainExample();
            myEight.BasicAndConditionExample();
            Console.WriteLine(myEight.BasicOrConditionExample(11));
            myEight.BasicTernaryOperatorExample(21);
            myEight.BasicSwitchExample(3);
            myEight.BasicWhileLoop();
            myEight.BasicDoWhileLoopExample();
            myEight.BasicForLoopExample(10);
            myEight.BasicJumpStatementExample("Tuesday");
        }