+ 4

Challenge: triangle number

Make a code that create a triangle with numbers like that: 1 12 123 1234 For that use an input to get the number of level in the triangle (in this example it's 4) Then write the sum of all the numbers in the triangle

21st Aug 2017, 6:05 PM
Αητοιπe
Αητοιπe - avatar
7 Réponses
21st Aug 2017, 6:46 PM
Vari93
Vari93 - avatar
22nd Aug 2017, 12:39 AM
ysraelcon
ysraelcon - avatar
+ 3
https://code.sololearn.com/ck8w96MG1G3E/?ref=app
22nd Aug 2017, 10:51 AM
hamletmun
hamletmun - avatar
+ 2
here it is... still in beta, shape is not perfect with limit greater than 9 https://code.sololearn.com/ct0dO0E1HQmC/#cpp nice challenge! 👍✌
21st Aug 2017, 8:05 PM
Luca
Luca - avatar
+ 2
My attempt in PHP: https://code.sololearn.com/wkL4heVdVT1O/# Nice challenge. :)
22nd Aug 2017, 7:24 PM
denk_n
denk_n - avatar
- 1
HERES THE NEW CHALLENGE... CHECK IT OUT FRIENDS https://www.sololearn.com/discuss/653982/?ref=app
24th Aug 2017, 6:51 PM
sayan chandra
sayan chandra - avatar