返回列表 發帖

506-三微陣列元素之和

  1. public class JPD05 {
  2.     public static void main(String[] argv) {
  3.        int sum =0;
  4.        int A[][][] = {{{1,2,3},{4,5,6}},
  5.                        {{7,8,9},{10,11,12}},
  6.                        {{13,14,15},{16,17,18}},
  7.                        {{19,20,21},{22,23,24}}};
  8.                               
  9.       


  10.       
  11.        System.out.printf("sum = %d\n", sum);
  12.     }
  13. }
複製代碼
Stay hungry,
Stay foolish.

返回列表