• 大小: 0.04M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-02-24
  • 语言: C#
  • 标签:

资源简介

成绩等级评定

资源截图

代码片段和文件信息

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

namespace use_if
{
    class Program
    {
        static void Main(string[] args)
        {
            int grade = 75; //定义学生成绩
            if (grade >= 80)
            {
                //满足条件 grade > =80
                Console.WriteLine(“该成绩的等级为优“);
            }
            else if (grade >= 70)
            {
                //不满足条件 grade > = 80 ,但满足条件 grade > = 70 
                Console.WriteLine(“该成绩的等级为良“);
            }
            else if (grade >= 60)
            {
                //不满足条件 grade > = 70 ,但满足条件 grade > = 60 
                Console.WriteLine(“该成绩的等级为中“);
            }
            else
            {
                //不满足条件 grade > = 6
                Console.WriteLine(“该成绩的等级为差“);
            }
            Console.ReadKey();
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       1312  2019-03-02 18:36  score grade\score grade.sln

    ..A..H.     35328  2019-03-02 19:03  score grade\score grade.suo

     文件       5120  2019-03-02 19:03  score grade\use if\bin\Debug\use if.exe

     文件      13824  2019-03-02 19:03  score grade\use if\bin\Debug\use if.pdb

     文件       5871  2019-03-02 19:03  score grade\use if\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件        385  2019-03-02 19:03  score grade\use if\obj\x86\Debug\use if.csproj.FileListAbsolute.txt

     文件       7049  2019-03-02 19:03  score grade\use if\obj\x86\Debug\use if.csprojResolveAssemblyReference.cache

     文件       5120  2019-03-02 19:03  score grade\use if\obj\x86\Debug\use if.exe

     文件      13824  2019-03-02 19:03  score grade\use if\obj\x86\Debug\use if.pdb

     文件       5875  2019-03-02 19:03  score grade\use if\obj\x86\Release\DesignTimeResolveAssemblyReferencesInput.cache

     文件       1044  2019-03-02 18:37  score grade\use if\Program.cs

     文件       1344  2019-03-02 18:36  score grade\use if\Properties\AssemblyInfo.cs

     文件       2433  2019-03-02 18:36  score grade\use if\use if.csproj

     文件       5120  2019-03-02 18:26  score grade\use switch\bin\Debug\use switch.exe

     文件      11776  2019-03-02 18:26  score grade\use switch\bin\Debug\use switch.pdb

     文件      11600  2019-03-02 19:03  score grade\use switch\bin\Debug\use switch.vshost.exe

     文件      11600  2019-03-02 19:03  score grade\use switch\bin\Release\use switch.vshost.exe

     文件        490  2013-06-18 20:28  score grade\use switch\bin\Release\use switch.vshost.exe.manifest

     文件       5879  2019-03-02 18:26  score grade\use switch\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件        312  2019-03-02 19:03  score grade\use switch\obj\x86\Debug\use switch.csproj.FileListAbsolute.txt

     文件       5120  2019-03-02 18:26  score grade\use switch\obj\x86\Debug\use switch.exe

     文件      11776  2019-03-02 18:26  score grade\use switch\obj\x86\Debug\use switch.pdb

     文件       5883  2019-03-02 19:03  score grade\use switch\obj\x86\Release\DesignTimeResolveAssemblyReferencesInput.cache

     文件        971  2019-03-02 18:26  score grade\use switch\Program.cs

     文件       1352  2019-03-02 18:26  score grade\use switch\Properties\AssemblyInfo.cs

     文件       2441  2019-03-02 18:26  score grade\use switch\use switch.csproj

     目录          0  2019-03-02 18:36  score grade\use if\obj\x86\Debug\TempPE

     目录          0  2019-03-02 19:03  score grade\use if\obj\x86\Release\TempPE

     目录          0  2019-03-02 18:26  score grade\use switch\obj\x86\Debug\TempPE

     目录          0  2019-03-02 19:03  score grade\use switch\obj\x86\Release\TempPE

............此处省略22个文件信息

评论

共有 条评论