简单的人品计算器

来源:互联网 发布:软件服务行业 编辑:程序博客网 时间:2024/04/30 20:07
//using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


namespace ConsoleApplication61
{
    class Program
    {
        static void Main(string[] args)
        {
            
            Console.Title = "人品计算器1.0"; 
            Console.WriteLine("人品评估报告");
            Console.Write("姓名:"); 
            string a = "";  
            string  comment="";
            a  = Console.ReadLine();
             int  b =0;
            for (int i = 0; i < a.Length; i++)
            {
                   b+= (int)a[i];
            }
                  b %= 100;
                 Console.WriteLine("分值:{0}",b); 
                  b /= 10;
               
            switch (b)
            { 
              
               
                case 0:
                case 1: comment = "非人类,无法评价!"; break;
                case 2:
                case 3: comment = "拜李宇春哥不灵,叫都敏俊xi不应的倒霉蛋"; break;
                case 4:
                case 5: comment = "掉人堆里都找不出来的普通人……"; break;
                case 6:
                case 7: comment = "拥有滑板鞋的思想富足者"; break;
                case 8:
                case 9: comment = "掌控蓝翔挖掘机技术的宇宙强者"; break;


            } Console.WriteLine("评价:{0}",comment);
            Console .Read();

}

}

            
            

            }


0 0