这样写对么
public class HelloWorld{ public static void main(String[] args) { double avg1=78.5; int rise=5; double rise1=rise; double avg2=avg1+rise1; System.out.println("考试平均分:"+avg1); System.out.println("调整后的平均分:"+avg2); } } 这样为啥不行
public class HelloWorld{ public static void main(String[] args) { double avg1=78.5; int rise=5; double rise1=rise; double avg2=avg1+rise1; System.out.println("考试平均分:"+avg1); System.out.println("调整后的平均分:"+avg2); } } 这样为啥不行
2016-01-26
举报