这个错哪儿了啊
package Java;
public class demo {
public static void main(String [] args) {
int i = 1;
int sum = 0;
do {
sum =sum + i;
i++;
if (sum > 20) {
break;
}
while (i > 10 )
}
System.out.println("100以内不能被3整除的整数和为:" + sum);
}
}
package Java;
public class demo {
public static void main(String [] args) {
int i = 1;
int sum = 0;
do {
sum =sum + i;
i++;
if (sum > 20) {
break;
}
while (i > 10 )
}
System.out.println("100以内不能被3整除的整数和为:" + sum);
}
}
2019-02-25
举报