问题标题:
出错了,为什么?Console.WriteLine("请输入成绩");intcj=Convert.ToInt32(Console.ReadLine());if(cj>=90){Console.WriteLine("等级为A");}if(90>cj>=80){Console.WriteLine("等级为B");}if(80>cj>=70){Console.WriteLine("等级为C");
问题描述:

出错了,为什么?

Console.WriteLine("请输入成绩");

intcj=Convert.ToInt32(Console.ReadLine());

if(cj>=90)

{

Console.WriteLine("等级为A");

}

if(90>cj>=80)

{

Console.WriteLine("等级为B");

}

if(80>cj>=70)

{

Console.WriteLine("等级为C");

}

if(70>cj>=60)

{

Console.WriteLine("等级为D");

}

if(cj

罗丽莉回答:
  if(90>cj>=80)   编程里面没有这种连比较的数学符号的.   要拆开写.   if(90>cj&&cj>=80)用&&来连接.并且的意思.
查看更多
八字精批 八字合婚 八字起名 八字财运 2024运势 测终身运 姓名详批 结婚吉日
已出生未出生
其它推荐
热门其它推荐
付费后即可复制当前文章
《出错了,为什么?Console.WriteLine("请输入成绩");intcj=Convert.ToInt32(Console.ReadLine());if(cj>=90){Console.WriteLine("等级为A");}if(90>cj>=80){Console.WriteLine("等级为B");}if(80>cj>=70){Console.WriteLine("等级为C");|其它问答-字典翻译问答网》
限时特价:5.99元/篇原价:20元