zoukankan      html  css  js  c++  java
  • 心里测试题

            static void Main(string[] args)
            {
                int meili = 0;
                string diyitixuanze="";
                int a = 5;
                int b = 3;
                int c = 1;

                Console.WriteLine("第一题:假如世界末日来临,你只能解救一种动物,你会救以下哪一种?");
                Console.WriteLine("a.兔.b. 羊. c. 鹿.");
                diyitixuanze=Console.ReadLine();

                if (diyitixuanze=="a")
                {
                    Console.WriteLine(meili=meili+a );
                }
                if (diyitixuanze == "b")
                {
                    Console.WriteLine(meili = meili + b );
                }
                if (diyitixuanze == "c")
                {
                    Console.WriteLine(meili = meili + c);
                }

                else
                {
                    Console.WriteLine("您输入的答案有误");
                }
                Console.Clear();
                Console.WriteLine("第二题:在非洲旅行土中,你造访了一个部落,部落首领坚持让你选一种动物带回去当纪念品,你会哪一种?");
                Console.WriteLine("a. 猴. b. 狮. c. 蛇. ");
                diyitixuanze = Console.ReadLine();

                if (diyitixuanze == "a")
                {
                    Console.WriteLine(meili = meili + a);
                }
                if (diyitixuanze == "b")
                {
                    Console.WriteLine(meili = meili + b);
                }
                if (diyitixuanze == "c")
                {
                    Console.WriteLine(meili = meili + c);
                }

                else
                {
                    Console.WriteLine("您输入的答案有误");
                }

                Console.Clear();

                Console.WriteLine("第三题:你做错事了,上天惩罚你变成人以外的动物,你想变成下面哪一种动物?");
                Console.WriteLine("a. 狗. b. 猫. c. 马.");
                diyitixuanze = Console.ReadLine();

                if (diyitixuanze == "a")
                {
                    Console.WriteLine(meili = meili + a);
                }
                if (diyitixuanze == "b")
                {
                    Console.WriteLine(meili = meili + b);
                }
                if (diyitixuanze == "c")
                {
                    Console.WriteLine(meili = meili + c);
                }

                else
                {
                    Console.WriteLine("您输入的答案有误");
                }

                Console.Clear();
                Console.WriteLine("第四题:假如你有能力使某种动物消失,你会选择哪一种?");
                Console.WriteLine("a. 狮. b. 蛇. c. 鳄鱼.");
                diyitixuanze = Console.ReadLine();

                if (diyitixuanze == "a")
                {
                    Console.WriteLine(meili = meili + a);
                }
                if (diyitixuanze == "b")
                {
                    Console.WriteLine(meili = meili + b);
                }
                if (diyitixuanze == "c")
                {
                    Console.WriteLine(meili = meili + c);
                }

                else
                {
                    Console.WriteLine("您输入的答案有误");
                }

                Console.Clear();
                Console.WriteLine("第五题:有一天,你碰上了一种会说人话的动物,你希望那是哪种动物?");
                Console.WriteLine("a. 羊. b. 马. c. 兔.");
                diyitixuanze = Console.ReadLine();

                if (diyitixuanze == "a")
                {
                    Console.WriteLine(meili = meili + a);
                }
                if (diyitixuanze == "b")
                {
                    Console.WriteLine(meili = meili + b);
                }
                if (diyitixuanze == "c")
                {
                    Console.WriteLine(meili = meili + c);
                }

                else
                {
                    Console.WriteLine("您输入的答案有误");
                }
                Console.Clear();
                Console.WriteLine("第六题:在一个孤岛上,你只能选一种动物来陪你,你会选:");
                Console.WriteLine("a. 狗. b. .. c. 母牛. ");
                diyitixuanze = Console.ReadLine();

                if (diyitixuanze == "a")
                {
                    Console.WriteLine(meili = meili + a);
                }
                if (diyitixuanze == "b")
                {
                    Console.WriteLine(meili = meili + b);
                }
                if (diyitixuanze == "c")
                {
                    Console.WriteLine(meili = meili + c);
                }

                else
                {
                    Console.WriteLine("您输入的答案有误");
                }

                Console.Clear();
                Console.WriteLine("第七题:假如你有能力可以驯服所有的动物,你会选择哪种动物来当宠物呢?");
                Console.WriteLine("a. 恐龙. b. 白老虎. c. 北极熊.");
                diyitixuanze = Console.ReadLine();

                if (diyitixuanze == "a")
                {
                    Console.WriteLine(meili = meili + a);
                }
                if (diyitixuanze == "b")
                {
                    Console.WriteLine(meili = meili + b);
                }
                if (diyitixuanze == "c")
                {
                    Console.WriteLine(meili = meili + c);
                }

                else
                {
                    Console.WriteLine("您输入的答案有误");
                }
                Console.Clear();

                Console.WriteLine("第八题:假如你有5分钟的时间可以当一种动物,你会选择当:");
                Console.WriteLine("a. 狮. b. 猫. c. 马.");
                diyitixuanze = Console.ReadLine();

                if (diyitixuanze == "a")
                {
                    Console.WriteLine(meili = meili + a);
                }
                if (diyitixuanze == "b")
                {
                    Console.WriteLine(meili = meili + b);
                }
                if (diyitixuanze == "c")
                {
                    meili = meili + c;
                }

                Console.WriteLine("魅力值:"+meili);
                if (meili >0&&meili <=10)
                {
                    Console.WriteLine("你并不吸引异性.你并没有十分渊博的知识,也没有什么特别的人格特质.对异性来说,你显得过于粗陋,所以你并不受异性的欢迎.");
                }
                else if (meili > 10&& meili <= 25)
                {
                    Console.WriteLine("恭喜!你对异性有很大的吸引力!在异性的眼中,你有一种魅力。你不只有美丽的外型,而且有幽默和大方的个性。你应该是一个很有气质的人而且深谙与人相处之道,你很懂得支配你的时间,所以你在异性之间很受欢迎。");
                }
                else
                {
                    Console.WriteLine("很好!很容易便可以吸引异性。你的幽默感使得人们乐於与你相处,他(她)与你一起时非常快乐!");
                }

    }

    PS:有很多需要改进的地方,新手。

  • 相关阅读:
    SQLite字符串拼接
    锐化
    《面向模式的软件体系结构1模式系统》读书笔记(2) 映像模式
    SQLite的Pivot
    《面向模式的软件体系结构1模式系统》读书笔记(3) 设计模式
    《面向模式的软件体系结构1模式系统》读书笔记(1) 适应性系统和微核模式
    MMX 初体验
    平滑
    英语人名书写规则 Anny
    How to resolve USB device is disabled in Ubuntu Virtualbox Anny
  • 原文地址:https://www.cnblogs.com/qz1234/p/5397881.html
Copyright © 2011-2022 走看看