Visualize the Right Triangle star pattern step by step. Watch nested loops place each star row by row, making loop logic crystal-clear for beginners.
A right-angled triangle where row i (0-indexed) contains exactly i+1 stars. It grows one star wider with each row.
Two nested loops: the outer loop i iterates over rows (0 to n-1). The inner loop j iterates from 0 to i, printing one star each time.
Row 0 has 1 star, row 1 has 2, …, row n-1 has n stars. Stars per row = i + 1. Time complexity: O(N²).