返回列表 發帖
package ffddasfdfas;

public class dasfafd {

        public static void main(String[] args) {
                // TODO 自動產生的方法 Stub
                  int i = 1, j = 1, count = 0;
                for (i = 1; i <= 3; i++) {        //第一個迴圈,i從1到3
                  for(j=1;j<=3;j++)
                  {
                          for(int k=1;k<=6;k++)
                          {
                                  count++;
                          }
                  }
                  
                    }  System.out.printf("count = %d\n", count);
                }
             
        }

TOP

返回列表