已采纳回答 / weixin_慕的地5091890
public class HelloWorld{ public static void main(String[] args) { int one = 10 ; int two = 20 ; int three = 0 ; three=one+two; System.out.println("three = one + two ==>" + three); three+=one; System.out.println("t...
2019-03-01
最赞回答 / 北国丨江山
错误有三处:if(scores[i]<0 && scores[i]>100) 逻辑运算错误,此处应该使用||运算,scores[i]<0 || scores[i]>100; count=+1,这是什么操作,没这样的写法,可以count++, ++count, count += 1;if(count == 3)结束循环次数判断错误,第三名不能输出,应该为count > 3。
2019-03-01
最新回答 / zzq123
因为还要判断num有没有超过10位数得加上if(num>=0&&num<=999999999){ //这里是while循环}else{ System.out.println("输入有误");}
2019-03-01