zoukankan      html  css  js  c++  java
  • 钱、车、房、能力

    //你有钱吗?你有房子吗?你有车吗?你有能力吗?
                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("一边去吧!");
                            }
                        }
                    }
                }
            }
  • 相关阅读:
    随机二分图
    城市旅行
    JZPKIL
    线性基专题总结
    杜教筛专题总结
    [NOI2018]你的名字
    P1120 小木棍 [数据加强版]
    先序遍历
    P1736 创意吃鱼法
    P2258 子矩阵
  • 原文地址:https://www.cnblogs.com/SJP666/p/4646578.html
Copyright © 2011-2022 走看看