返回列表 發帖
  1. public class hi87 {

  2.         public static void main(String[] args) {
  3.                 // TODO 自動產生的方法 Stub
  4.                 int count=0;
  5.                 for(int i=1;i<=3;i++)
  6.                 {
  7.                         for(int j=1;j<=3;j++)
  8.                         {
  9.                                 for(int z=1;z<=6;z++)
  10.                                 {
  11.                                         count++;
  12.                                 }
  13.                         }       
  14.                 }
  15.                 System.out.printf("count = %d\n",count);
  16.         }

  17. }
複製代碼

TOP

返回列表