⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 5-2.txt

📁 jsp常用实例讲解
💻 TXT
字号:
public class PrimeNumber{
public static void main( String args[] ){
System.out.println(" ** prime numbers between 100 and 200 **");
int n=0;
outer:for(int i=101;i<200;i+=2){ //outer loop
int k=15; //select for convinence for(int j=2;j<=k;j++){ //inner loop
if( i%j==0 )
continue outer;
}
System.out.print(" "+i);
n++; //output a new line
if( n<10 = //after 10 numbers
continue;
System.out.println();
n=0;
}
System.out.println();
}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -