Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Ruby Mini-Projects

Pyramid

A class with methods to create a pyramid based on summing the two numbers in the row below.

Use Pyramid.print_pyramid to print a pyramid by giving the base row as a set of numbers (integers or decimals) separated by commas.

Use Pyramid.print_pyramid to print a pyramid, passing an optional pyrmaid height (default is 10) and default madximum number (default is 100)