Commit 400a73a
committed
feat: Implement input and display of 2x2 2D array using nested loops
🧠 Logic:
- Declares a 2D array `A` of size 2x2.
- Takes input from the user using nested for-loops (`i` for rows, `j` for columns).
- Displays the array elements in matrix format using the same nested loop structure.
Signed-off-by: Somesh diwan <[email protected]>1 parent c85e15f commit 400a73a
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
0 commit comments