代码拿错了啊
package com.text;
public class hellonihao {
for (int i = 1; i<=100&&i % 3 != 0;i++) {
int sum=0;
sum = sum + i;
System.out.println("1到100之间不能被3整除的数之和为:" + sum);
}
}
package com.text;
public class hellonihao {
for (int i = 1; i<=100&&i % 3 != 0;i++) {
int sum=0;
sum = sum + i;
System.out.println("1到100之间不能被3整除的数之和为:" + sum);
}
}
2018-01-15
举报