Practice · 1 of 3
Star Triangle
CHALLENGE
Difficulty: beginner+25 XP
Implement void program(void) printing a left-aligned triangle of * with 4 rows:
``
*
**
***
****
``
Rows and inner counts computed by nested loops — no literal strings of stars.
Press Submit to check your solution.
Back to lesson: Practice: Pattern Factory