[CHALLENGE]...[easy] staircase of numbers | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 5

[CHALLENGE]...[easy] staircase of numbers

make a staircase like this 1 11 121 1331 14641 15101051 well it doesnt look like staircase though :) i got ZERO for my exam because of this question.. but now a already figured it out

3rd Jan 2018, 8:43 AM
Ahmad Rafsanjani
Ahmad Rafsanjani - avatar
10 Réponses
+ 19
Slightly modifying this code will give you what you want. https://code.sololearn.com/WXrwOtm23yij/?ref=app
3rd Jan 2018, 11:09 AM
Krishna Teja Yeluripati
Krishna Teja Yeluripati - avatar
+ 20
//remove spaces in beginning of each line ☺ https://code.sololearn.com/c5g3Qt9Lqt5e/?ref=app
3rd Jan 2018, 1:09 PM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 17
Here's, using stream (oneliner) 😊 https://code.sololearn.com/cq6BXKMy4pHY/?ref=app
4th Jan 2018, 6:04 PM
LukArToDo
LukArToDo - avatar
3rd Jan 2018, 2:05 PM
Danijel Ivanović
Danijel Ivanović - avatar
+ 9
https://code.sololearn.com/cAVR4SrBT3av/?ref=app
3rd Jan 2018, 11:42 AM
Infinity
Infinity - avatar
+ 4
@Yash ..yeah it is..though i forgot the name until just now.. @krishna and @infinity ..you two doing great..
3rd Jan 2018, 1:09 PM
Ahmad Rafsanjani
Ahmad Rafsanjani - avatar
3rd Jan 2018, 2:18 PM
Paul
Paul - avatar
+ 4
Who wants to see that JAVA ART? I was very bored ;) https://code.sololearn.com/ceQ1krDLcfcm/?ref=app
4th Jan 2018, 7:07 PM
abdulazizumarovich
abdulazizumarovich - avatar
+ 3
One liner. And faster than calculating factorials. https://code.sololearn.com/cYbnEGfj8Xjz/?ref=app
3rd Jan 2018, 6:58 PM
VcC
VcC - avatar
+ 3
https://code.sololearn.com/WFXo17WmFX69/?ref=app
4th Jan 2018, 7:42 PM
Luc Hariman Randrianomenjanahary
Luc Hariman Randrianomenjanahary - avatar