コード例 #1
0
        public static void Main()
        {
            RedBackground(
                @"                      

  _____ _____ ______ _____  _____  ______ _       ____          _  ________ _______     __
 |  __ \_   _|  ____|  __ \|  __ \|  ____( )     |  _ \   /\   | |/ /  ____|  __ \ \   / /
 | |__) || | | |__  | |__) | |__) | |__  |/ ___  | |_) | /  \  | ' /| |__  | |__) \ \_/ / 
 |  ___/ | | |  __| |  _  /|  _  /|  __|   / __| |  _ < / /\ \ |  < |  __| |  _  / \   /  
 | |    _| |_| |____| | \ \| | \ \| |____  \__ \ | |_) / ____ \| . \| |____| | \ \  | |   
 |_|   |_____|______|_|  \_\_|  \_\______| |___/ |____/_/    \_\_|\_\______|_|  \_\ |_|   

                                   
                                                                            
                          We sell bread and pastries
                          Would you like some: 
                                [B]read
                                [P]astries

                                
                                ");

            string resp = Console.ReadLine().ToLower();

            while (resp != "t")
            {
                if (resp == "b")
                {
                    resp = Bread.BreadMenu();
                }

                else
                {
                    resp = Pastry.PastryMenu();
                }
            }

            if (resp == "t")
            {
                TotalPrice();
            }
        }