美文网首页
2018-10-31作业三

2018-10-31作业三

作者: 拖鞋大王 | 来源:发表于2018-10-31 15:24 被阅读0次

    Console.WriteLine("请输入一个语文成绩");

    int C = Convert.ToInt32(Console.ReadLine());

    Console.WriteLine("请输入一个音乐成绩");

    int M = Convert.ToInt32(Console.ReadLine());

    bool b = C >= 90 && M > 80 || C == 100 && M > 70;

    if (b)

    { Console.WriteLine("奖励100元");}

    Console.ReadKey();

    2018-10-31作业三 2018-10-31作业三

    相关文章

      网友评论

          本文标题:2018-10-31作业三

          本文链接:https://www.haomeiwen.com/subject/atyatqtx.html