📄 continuepro.bak
字号:
import java.lang.Math;
public class continuePro{
public static void main(String args[])
{
double sqrtDouble;
double floorDouble;
int floorInt;
int n = 0;
System.out.println("****100以内的素数****");
outer:for(int i = 1;i<100;i++){
sqrtDouble = Math.sqrt(i);
floorDouble = Math.floor(sqrtDouble);
floorInt = (int)floorDouble;
inner1:{
for(int j=2;j<=floorInt;j++){
if(i%j==0)
break inner1;
}
System.out.print(" "+i);
n = n+1;
}
inner2:{
if(n!=10)
break inner2;
System.out.println();
n = 0;
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -