//http://www.weixueyuan.net/view/6311.html //多重循环 import java.util.Scanner; public class Test16{ public static void main(String args[]){ Scanner in =new Scanner(System.in); for (int i=1;i<=3;i++){ //最外层循环 int sum=0; for (int j=1;j<=3;j++){ System.ou…
----- 什么是多重循环 ---- 打印数列 public class ForEx { public static void main(String[] args){ for(int i = 100; i >= 5; i=i-5){ System.out.print(i+" "); } /* int i = 100; while(i>=5){ // System.out.print(i+" "); i-=5; }*/ // int i = 100…
</pre>直接用break ;详细举比例如以下:<p></p><p></p><p></p><pre name="code" class="java"><span style="font-size:18px;"> package com.test; public class test { public static void mai…