You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

441 B

Pyramid

Instructions

Create a function named pyramid which works just like your triangle function. But, it should be pyramid shaped.

Output example

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

No new line in last line

Notions