Page 1 of 1

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
by answerhappygod
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 1
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 1 (32.84 KiB) Viewed 45 times
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