Simple pyramid can be drawn using simple do loop and repeat function.