Commit 7ae3f33
committed
feat: Print square pattern with repeating row numbers using nested loops
🧠 Logic:
- Outer loop controls the rows (1 to 5).
- Inner loop prints the current row number 5 times.
- Results in a square grid with identical numbers in each row.
Signed-off-by: Somesh diwan <[email protected]>1 parent cf1a6ca commit 7ae3f33
1 file changed
+4
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
8 | 6 | | |
9 | 7 | | |
10 | 8 | | |
11 | 9 | | |
12 | | - | |
| 10 | + | |
0 commit comments