美文网首页
c#第八次作业

c#第八次作业

作者: 鲸落_79f1 | 来源:发表于2018-10-31 15:13 被阅读0次

    #作业要求

    #程序

    //** 输入老苏的成绩,输出以下判断是否正确,正确输出ture,错误输出false,老苏的语文和数学成绩都大于90分 //1提示用户输入 Console.WriteLine("输入老苏的语文成绩"); //2提示用户输入 string strchinese = Console.ReadLine(); //转换成数字数值 int chinese = Convert.ToInt32(strchinese); Console.WriteLine("输入老苏的数学成绩"); string strmath = Console.ReadLine(); int math = Convert.ToInt32(strmath); //输出结果 bool b = chinese > 90 && math > 90; Console.WriteLine(b); Console.ReadKey();

    #效果

    c#第八次作业

    相关文章

      网友评论

          本文标题:c#第八次作业

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