Sign in to run tests against edge cases and save your code automatically.
Problem Description
Easy
Triangle of Stars
PROIteration & Loops
Nested Loops
String Building
Write a program that inputs a positive integer `n` and outputs a right-angled triangle of asterisks (`*`) with `n` rows. Row 1 has one asterisk, row 2 has two, and so on up to row `n`.
For example, if `n` is 3 the output is:
```
*
**
***
```
Example Input
3
Example Output
*
**
***
Success Rate:
0% (0 passed / 0 attempted)
Code
Draft auto-saved
Test Results
Click "Test Code" to evaluate your code against the tests.