// Copyright (c) 2014软件技术1班
// All rights reserved.
// 作 者:A35卢杰林
// 完成日期:2014年 11 月 25 日
// 版 本 号:v1.0
//
// 问题描述:人品计算机
//
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace RenPing
{
class Program
{
static void Main(string[] args)
{
string a;
int b=0;
Console.Write("人品评估报告\n");
Console.Write("姓名:");
a = Convert.ToString(Console.ReadLine());
for (int i = 0; i <a.Length; i++)
{
b += (int)a[i];
}
b = b / 1000;
Console.Write("分值:{0}\n",b);
if (b == 82) Console.Write("评价:超级好");
if (b < 30) Console.Write("评价:很渣渣");
else if (b < 50) Console.Write("评价:非常不好");
else if (b < 70) Console.Write("评价:人品一般");
else if (b < 90) Console.Write("评价:人品很好");
else Console.Write("评价:人品爆表");
Console.Read();
}
}
}
人品计算机
最新推荐文章于 2021-05-27 00:58:42 发布