已采纳回答 / 木又木又
if(score < 60; score++; count++)这里换成for就对了,if只是一个判断句,反馈的只是true和false,不能进行加减。
2016-10-27
最赞回答 / 大00峰
int age=10; if (age>18) {System.out.println("成年"); } else {System.out.println("未成年");}false是错误的意思,age=10,小于18,所以if后面是错的,所以不执行后面的“成年”,而是执行else
2016-10-27
最新回答 / 慕粉7032446
three=one+two;//此时three的值是10+20=30 System.out.println(three); three+=one;//此时three的值=30+10=40 System.out.println(three); three-=one;//three=40-10=30 System.out.println(three); three*=one;//three=30*10=300 ...
2016-10-27
已采纳回答 / DamonXiong
int sum=age1+age2+age3+age4; double avg=sum/4; int minus=age1-age2; int newAge=(--age1);我的是这样的,你应该也是正确的,我这边有时候提交正确有时候提交错误,多提交几次吧。
2016-10-27
最赞回答 / PassingTrace
MAN,GIRL打错了,输出不加“” System.out.println(MAN); System.out.println(GIRL);
2016-10-27