Commit 189c61e
committed
feat: Display coordinate pairs using nested for loops
🧠 Logic:
- Outer loop (`i`) runs from 1 to 5 representing the row.
- Inner loop (`j`) runs from 0 to 5 representing the column.
- For each combination, print the coordinate pair `(i, j)` on the same line.
- After each outer loop iteration, print a newline to separate rows.
Signed-off-by: Somesh diwan <[email protected]>1 parent 241fbde commit 189c61e
1 file changed
+2
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
| 2 | + | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
8 | | - | |
| 7 | + | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
| |||
0 commit comments