public class zhishu { public static void main (String[] args) { for(int i = 101; i <= 200; i++) { boolean f = true; for(int j=1 ;j<i; j++) { if(i % j == 0) { f = false; break; } } if(!f) {continue;} System.out.print(" "+ i); } }}
添加回答
举报
0/150
提交
取消