Skip to content

Latest commit

 

History

History
56 lines (52 loc) · 563 Bytes

README.md

File metadata and controls

56 lines (52 loc) · 563 Bytes

Implements a program that prints out a half-pyramid of a specified height, per the below.

$ ./mario
Height: 5
    ##
   ###
  ####
 #####
######
$ ./mario
Height: 3
  ##
 ###
####

Usage

Program should behave per the example below. Assumed that the underlined text is what some user has typed.

$ ./mario
Height: 4
   ##
  ###
 ####
#####
$ ./mario
Height: 0
$ ./mario
Height: -5
Height: 4
   ##
  ###
 ####
#####
$ ./mario
Height: -5
Height: five
Height: 40
Height: 24
Height: 4
   ##
  ###
 ####
#####