码迷,mamicode.com
首页 > 其他好文 > 详细

结婚问题

时间:2015-03-30 20:55:04      阅读:128      评论:0      收藏:0      [点我收藏+]

标签:

 while (true)
            {
                Console.Write("有房子么:");
                string a = Console.ReadLine();
                if (a == "有房" || a == "有")
                {
                    Console.Write("有车子么:");
                    string b = Console.ReadLine();
                    if (b == "有车" || b == "有")
                    {
                        Console.Write("有票子么:");
                        string c = Console.ReadLine();
                        if (c == "有票" || c == "有")
                        {
                            Console.WriteLine("我们结婚吧");
                        }
                        else if (c =="没有")
                        {
                            Console.WriteLine("bye");
                        }
                    }
                    else if (b =="没有")
                    {
                        Console.WriteLine("bye");
                    }
                }
                else if (a =="没有")
                {
                    Console.WriteLine("bye");
                }
                else
                {
                    Console.WriteLine("尼玛 我问你有没有");
                }

结婚问题

标签:

原文地址:http://www.cnblogs.com/Mr-xue/p/4378959.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!