Skip to content

Latest commit

 

History

History
27 lines (23 loc) · 398 Bytes

pyramid.md

File metadata and controls

27 lines (23 loc) · 398 Bytes

Pyramid

Write a function that accepts a single parameter, an Integer that creates an octothorpe (#) pyramid. The parameter determines the width (in octothorpes) of the bottom tier of the pyramid.

Example input 1

pyramid(7)

Expected output 1

   #
  ###
 #####
#######

Example input 2

pyramid(6)

Expected output 2

  ##
 ####
######