public class CC
{
public static void main(String[] args)
{
int xhcs = 100; // xhcs=循环次数 stop: for(int x=2;x<=xhcs;x++)
{
for(int y=2;y<x;y++) //就是这里不懂了,高手帮忙,在线等!!
{
if(x%y==0)
{
continue stop;
}
}
System.out.println(x);
} }
}
{
public static void main(String[] args)
{
int xhcs = 100; // xhcs=循环次数 stop: for(int x=2;x<=xhcs;x++)
{
for(int y=2;y<x;y++) //就是这里不懂了,高手帮忙,在线等!!
{
if(x%y==0)
{
continue stop;
}
}
System.out.println(x);
} }
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货