Exerpad
Exercise 7 · Chapter: For LoopsRequired+50 XP

Star Triangle

Read a number N, then print a triangle pattern with stars.

Example:

Input:

4

Output:

*
**
***
****

Hint: You can repeat strings: "*".repeat(3) gives "***".

Need a hint?
3 available · costs 5 XP each
javascript

Output
Run your code to see the output here.