Commit 0b0895a
committed
feat: Add right-aligned upper triangle star pattern using nested loops
🧠 Logic:
- Outer loop controls rows (1 to 4).
- Inner loop runs from 1 to 4.
- Print "* " when row index ≤ column index, else print spaces.
- Creates a right-aligned upper triangular pattern.
Signed-off-by: Somesh diwan <[email protected]>1 parent d20f278 commit 0b0895a
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
0 commit comments