everyone knows Giza's piramid, right?
lets make a number piramid like this
input any number (not too big, it will crash)
and the system has to make a piramid
8/10/2017 3:40:53 PM
here you go, in c++
pyramid is centered with numbers smaller than 100 :)
A quick attempt in Ruby...
No. HERE is the shortest one line). Not the easiest to read, though :-)
Not your question (Pascal triangle) but a triangle though
here is the 2nd shortest python code..
your one line code writing amuses me brother....
Send us a message