[问答题] 下面的程序是打印输出100~300之间的不能被3整除的数。请在每条横线处填写一条语句,使程序的功能完整。 注意:请勿改动main()主方法和其他已
2021-07-20
[问答题] 下面的程序是打印输出100~300之间的不能被3整除的数。请在每条横线处填写一条语句,使程序的功能完整。
注意:请勿改动main()主方法和其他已有的语句内容,仅在横线处填入适当的语句。
public class printNo3and5
void print()
int n ;
for(n=100 ;n
if(n%3==0)
__________
System.out.println(n);
public static__________main(String args[])
printNo3and5 obj=new printN03and5();__________
正确答案:continue; void obj.print();
词条内容仅供参考,如果您需要解决具体问题
(尤其在法律、医学等领域),建议您咨询相关领域专业人士。
