Skip to content

Commit d50a40a

Browse files
committed
feat: Implement left-aligned lower triangle star pattern using i + j > 5 condition
🧠 Logic: - Outer loop controls rows (1 to 5). - Inner loop controls columns (1 to 5). - Star is printed if i + j > 5, else spaces. - Forms a left-aligned lower triangle with stars shifted to the right. Signed-off-by: Somesh diwan <[email protected]>
1 parent 0b0895a commit d50a40a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Section8LoopAB/src/StarPatternsAB3.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ public static void main(String[] args) {
77
else
88
System.out.print(" ");
99
}
10-
System.out.println("");
10+
System.out.println(" ");
1111
}
1212
}
1313
}

0 commit comments

Comments
 (0)