Commit d243eb2
committed
feat: Create and print a jagged 2D array with varying column sizes per row
🧠 Logic:
- Declares a 2D jagged array `A` with 3 rows.
- Assigns different column lengths to each row: 5, 3, and 8.
- Uses enhanced for-each loops to print all elements in each row.
Signed-off-by: Somesh diwan <[email protected]>1 parent 400a73a commit d243eb2
1 file changed
+4
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
26 | 25 | | |
27 | | - | |
| 26 | + | |
0 commit comments