Commit 882ea48
committed
feat: Implement 2D array input and output using nested loops and enhanced for-each loop
🧠 Logic:
- Declares and initializes a 3x3 2D array.
- Takes input using nested `for` loops for each cell.
- Outputs each row using `Arrays.toString()` via enhanced for-each loop for cleaner display.
🔍 Highlights fixed-size matrix input, row-wise traversal, and formatted output.
Signed-off-by: Somesh diwan <[email protected]>1 parent cd628d1 commit 882ea48
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
0 commit comments