public/subjects/diamon
Christopher Fremond 18c91ffd67
Update README.md
2021-11-03 12:48:26 +00:00
..
README.md Update README.md 2021-11-03 12:48:26 +00:00

README.md

🌟 Diamon

Instructions

Create a diamon function that takes a string and a number as parameters and returns a diamond shape constructed by 2 arguments:

  • the characters (as a string) to be repeated
  • the size of a side (as a number)

It is just like pyramid + a reversed pyramid

Output example

  • * character and side of 5 :
    *
   ***
  *****
 *******
*********
 *******
  *****
   ***
    *

No new line in last line

Notions