怎么我算出来是700
public class HelloWorld {
public static void main(String[] args) {
int a=2;
int b=0;
do{a+=2;
b+=a;
}
while(a<=50);
System.out.println(b);
}
public class HelloWorld {
public static void main(String[] args) {
int a=2;
int b=0;
do{a+=2;
b+=a;
}
while(a<=50);
System.out.println(b);
}
2020-04-28
举报