Sobes.tech
Junior — Senior

Creating a function to print a triangle made of characters

livecode

Task condition

Develop a function that takes an integer n. The function should output to the console a 'hill' (triangle) made of symbols, where the number of lines is exactly equal to the given value n, as shown in the example.

Example for n = 4:
*
**
***
****