divider

Objective

Use loops to generate simple ASCII art patterns that reinforce repetition, structure, and creative output.

Skills to Practice

  • icon Loop syntax and control flow
  • icon String manipulation and pattern building
  • icon Creative formatting with terminal output
divider

Tasks

  • icon Create a new project named sprint-2-4
  • icon Complete the following tasks:
    • icon Write a loop that prints a right-angled triangle using `*` characters
    • icon Add a second loop that prints the triangle in reverse
    • icon Bonus: Let the user input the triangle height
divider

Sample Output

Sample Output
*
**
***
****
*****
*****
****
***
**
*

Begin Challenge