Practice ยท 1 of 3
Star Triangle
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.
Difficulty: beginner
Press Submit to check your solution.
Back to lesson: Practice: Pattern Factory