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

钱、车、房、能力

时间:2015-07-14 22:32:31      阅读:248      评论:0      收藏:0      [点我收藏+]

标签:

//你有钱吗?你有房子吗?你有车吗?你有能力吗?
            Console.WriteLine("你有钱吗?");
            string a = Console.ReadLine();
            if (a == "有钱")
            {
                Console.WriteLine("我们继续聊聊吧!");
            }
            else
            {
                Console.WriteLine("你有房子吗?");
                string b = Console.ReadLine();

                if (b == "有房")
                {
                    Console.WriteLine("去看看房子吧");
                }
                else
                {
                    Console.WriteLine("你有车吗?");
                    string c = Console.ReadLine();
                    if (c == "有车")
                    {
                        Console.WriteLine("去兜兜风吧!");
                    }
                    else
                    {
                        Console.WriteLine("你有能力吗?");
                        string d = Console.ReadLine();
                        if (d == "有能力")
                        {
                            Console.WriteLine("我们谈谈吧!");
                        }
                        else
                        {
                            Console.WriteLine("一边去吧!");
                        }
                    }
                }
            }
        }

 

钱、车、房、能力

标签:

原文地址:http://www.cnblogs.com/SJP666/p/4646578.html

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