人品计算器
来源:互联网 发布:cf卡数据恢复软件 mac 编辑:程序博客网 时间:2024/05/22 07:04
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication21
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("请输入你的姓名");
string Name = "";
Name = Console.ReadLine();
int score = 0;
for (int i = 0; i < Name.Length; i++)
{
score += (int)Name[i];
}
score %= 100;
string comment = "";
switch (score / 10)
{
case 0:
case 1: comment = "世界上最笨的人"; break;
case 2:
case 3: comment = "离白痴不远了"; break;
case 4:
case 5: comment = "正常人"; break;
case 6:
case 7: comment = "和爱因斯坦是同一类人"; break;
case 8:
case 9: comment = "超越宇宙的最强王者"; break;
}
Console.Clear();
Console.WriteLine("人品评估报告");
Console.WriteLine("姓名:{0}", Name);
Console.WriteLine("分值:{0}", score);
Console.WriteLine("评价:{0}", comment);
Console.ReadKey(true);
}
}
}
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication21
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("请输入你的姓名");
string Name = "";
Name = Console.ReadLine();
int score = 0;
for (int i = 0; i < Name.Length; i++)
{
score += (int)Name[i];
}
score %= 100;
string comment = "";
switch (score / 10)
{
case 0:
case 1: comment = "世界上最笨的人"; break;
case 2:
case 3: comment = "离白痴不远了"; break;
case 4:
case 5: comment = "正常人"; break;
case 6:
case 7: comment = "和爱因斯坦是同一类人"; break;
case 8:
case 9: comment = "超越宇宙的最强王者"; break;
}
Console.Clear();
Console.WriteLine("人品评估报告");
Console.WriteLine("姓名:{0}", Name);
Console.WriteLine("分值:{0}", score);
Console.WriteLine("评价:{0}", comment);
Console.ReadKey(true);
}
}
}
0 0
- ~~~~~~~~~~~~~人品计算器~~~~~~~~~~~~~~~~~~~~~~~
- 人品计算器
- 人品计算器
- 人品计算器
- 人品计算器
- 人品计算器
- 人品计算器
- 人品计算器
- 人品计算器
- 人品计算器
- 人品计算器
- 人品计算器
- 人品计算器
- 人品计算器
- 人品计算器
- 人品计算器
- 人品计算器
- 人品计算器
- matlab图像配准2
- android IPC_service
- Android 开发之旅:view的几种布局方式及实践
- 第12周项目 3.1 递归 阶乘
- 第十四周 项目3.1 多科成绩处理
- 人品计算器
- 函数版星号图
- PHP 上传文件大小限制
- 第14周 项目2-带姓名的名单(2)
- 选择屏幕按钮
- 第十三周项目5——将两个字符串连接仍保存到第一个字符串中
- ArcGis Server queryTask返回数据的geometry为空
- java注解应用实例 - Annotation, 自定义注解, 注解类规则
- 第十四周 项目3.2 多科成绩处理