Beispiel #1
0
        static void StatementSamples()
        {
            StatementExamples se = new StatementExamples();

            //se.SampleIf();
            //Console.WriteLine(" ");
            //se.SampleIfElse();
            //Console.WriteLine(" ");
            //se.SampleIfChain();
            //Console.WriteLine(" ");
            //se.SampleIfAnd();
            //Console.WriteLine(" ");
            //se.SampleIfOr();
            //Console.WriteLine(" ");
            //se.SampleConditional();
            //Console.WriteLine(" ");
            //se.SampleSwitch(10);
            //Console.WriteLine(" ");
            //se.SampleWhile();
            //Console.WriteLine(" ");
            //se.SampleDoWhile();
            //Console.WriteLine(" ");

            //Console.WriteLine(" ");
            //Console.WriteLine(" ");
            //se.SampleFor();
            //Console.WriteLine(" ");
            //se.SampleForEach();

            //Console.WriteLine(" ");

            //string myString = se.JumpStatementExample("Sunday");
            //Console.WriteLine(myString);

            //Console.WriteLine(" ");

            //string myString1 = se.JumpStatementExample("Saturday");
            //Console.WriteLine(myString1);

            //string myString2 = se.JumpStatementExample("Friday");
            //Console.WriteLine(myString2);

            //Console.WriteLine(" ");

            //string myString3 = se.JumpStatementExample("Tuesday");
            //Console.WriteLine(myString3);

            //Console.WriteLine(" ");

            //string myString4 = se.JumpStatementExample("Monday");
            //Console.WriteLine(myString4);

            //BottlesSong();

            se.SampleDays(DaysOfWeek.Wed);
        }
Beispiel #2
0
 static void StatementSamples()
 {
     StatementExamples se = new StatementExamples();
     //se.SampleIf();
     //se.SampleIfElse();
     //se.SampleIfChain();
     //se.SampleIfAnd();
     //se.SampleIfOr();
     //se.SampleConditional();
     //se.SampleSwitch(10);
     //se.SampleWhile();
     //se.SampleDoWhile();
     //se.SampleForEach();
     //string myString = se.JumpStatementExample("Sunday");
     //Console.WriteLine(myString);
     //se.SampleDays(DaysOfWeek.Wed);
 }