using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 职称枚举类型
{

    class Class1
    {




        static void Main(string[] args)
        {
            int x = Convert.ToInt32(Console.ReadLine());
            string result = null;
            switch (x / 10) { 
                case 10:
                    result = "优秀哦";
                    break;
                case 9:
                    result = "不错";
                    break;
                case 8:
                    result = "良好";
                    break;
                case 7:
                    result = "还行";
                    break;

                case 6:
                    result = "及格";
                    break;
                default:
                    result = "欢迎看成绩!";
                    break;

            }
            System.Console.WriteLine(result);

        }
    }
}


本文转载:CSDN博客