This programme is written in c++ by me to make a 2d pyramid.