Exemple #1
0
        }     // end method my lesson 9 examples

        static void MyOtherLesson8Examples()
        {
            Lesson8 myLesson8 = new Lesson8();

            myLesson8.BasicWhileLoop();
            myLesson8.BasicDoWhileLoopExample();
            Console.WriteLine(myLesson8.BasicJumpStatementExample("Sunday"));
            myLesson8.BasicOtherJumpStatements();
        }     // end method my other lesson 8 examples
Exemple #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");
        }