怎么用 for 循环求和,然后设置筛选条件 比如:3 的倍数不参与求和运算,用 continue实现,
for(int i=a;i<b;++i){ if(i%3==0)continue; sum+=i; }
if 条件==3直接continue其他正常运行即可