3. Write a program in java for 2D-array using for loop that iterates from 0<3 for loop iterates from j-0 to j<3 and prin
Posted: Tue Jul 12, 2022 8:17 am
3. Write a program in java for 2D-array using for loop that iterates from 0<3 for loop iterates from j-0 to j<3 and print the element which is at the index a[j] Output: 1 class TwodimensionalLoop 2 ( 8 9 10 12 13 14 15} Output: public static void main(String args[]) { 6 50 7 60 int[][] a-{{10,20), (30,40},{50,60});//declaration and initialization System.out.println("Two dimensional array elements are"); ) for ( { } } { for ( } System.out.println(a[j]); Two dimensional array elements are 10 20 30 5:40