public/subjects/triangle
davhojt 0513da1fdd docs(triangle): fix typo 2022-05-31 08:27:51 +02:00
..
README.md docs(triangle): fix typo 2022-05-31 08:27:51 +02:00

README.md

Triangle

Instructions

Create a function named triangle that takes a string and a number as arguments. Your function will return a string representing a triangle.

The string will denote the characters which construct the triangle, and the number denotes its height.

Example

  • * character and depth of 5:
*
**
***
****
*****

No new line in last line

Notions