FROM ME TO YOU

oh my bizarre life !!

switch文

caseを続けて書けるのは知らなかった

            var signal = Console.ReadLine();

            switch (signal)
            {
                case "blue":
                case "green":
                    Console.WriteLine("Go!");
                    break;
                case "yellow":
                    Console.WriteLine("Caution!");
                    break;
                case "red":
                    Console.WriteLine("stop!");
                    break;
                default:
                    Console.WriteLine("err");
                    break;