Example #1
0
 static void Main(string[] args)
 {
     Loops.DivisibleBy3();
     Loops.Sum();
     Loops.Factorials();
     Loops.GuessNumber();
     Loops.FindMax();
 }
Example #2
0
        static void Main(string[] args)
        {
            Loops lp = new Loops();
            // 1p.LoopEx();

            //lab EX1 cumulative total of 1- 100
            int x = 0;

            for (int i = 1; i <= 100; i++)
            {
                x = x + 1;
                Console.WriteLine(i);
            }
            Console.WriteLine(x);

            //lab EX2 cumulative total
            for (int i = 0; i <= 25; i += 3)
            {
                Console.WriteLine(i);
            }
            Console.Read();
        }