Exemplo n.º 1
0
        public static void Main()
        {
            int desiredSandClockHeight = getDesiredSandClockHeight();

            SandClock.PrintSandClockByGivenHeight(desiredSandClockHeight);
            Console.WriteLine("Press Enter to exit");
            Console.ReadLine();
        }
Exemplo n.º 2
0
        private static void sandClockForAdvanced()
        {
            int numberOfStarsLines = userInput();

            if (numberOfStarsLines % 2 == 0)
            {
                numberOfStarsLines += 1;
            }

            StringBuilder stringBuilderForRecursion = new StringBuilder();
            string        sandClock = B19Ex02.SandClock(stringBuilderForRecursion, 0, numberOfStarsLines);

            Console.WriteLine(sandClock);
        }