Fun Challenge : The number Piramid! (Medium) | Sololearn: Learn to code for FREE!

+1

Fun Challenge : The number Piramid! (Medium)

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 example : input : 5 output : 1 212 32123 4321234 543212345 easy, right?

8/10/2017 3:40:53 PM

Domces Games

9 Answers

New Answer

+2

here you go, in c++ pyramid is centered with numbers smaller than 100 :) https://code.sololearn.com/c4UMPdFQNfZa/#cpp

+1

https://code.sololearn.com/c0zdn0C5LxLK/?ref=app

+1

A quick attempt in Ruby... https://code.sololearn.com/ci9i7pz6fAth/?ref=app

+1

In javascript: https://code.sololearn.com/WTv46xDZGkx4/?ref=app

+1

No. HERE is the shortest one line). Not the easiest to read, though :-) https://code.sololearn.com/cGig7Hd5R0AK/?ref=app

0

Not your question (Pascal triangle) but a triangle though https://code.sololearn.com/cLOGjVzpTZU9/?ref=app

0

here is the 2nd shortest python code.. after vcc☺😊 https://code.sololearn.com/cy0W4EQ3LB2J/?ref=app

0

ha ha☺😊👍👍

0

@ vcc your one line code writing amuses me brother....