Challenge: Find the pattern | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 18

Challenge: Find the pattern

Try to discover the pattern *1 **3 ***6 ****10 *****15 ******21 and do a code in any language which receive for an user input a number of lines to print.

27th Jan 2018, 10:02 AM
Daniel
Daniel - avatar
24 Answers
27th Jan 2018, 1:45 PM
🐙evil octopus
🐙evil octopus - avatar
+ 25
https://code.sololearn.com/c16vu4iycGNF/?ref=app
28th Jan 2018, 12:10 PM
Prabha_I
Prabha_I - avatar
27th Jan 2018, 12:39 PM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 19
https://code.sololearn.com/cDCBSsXV045s/?ref=app
27th Jan 2018, 3:26 PM
LukArToDo
LukArToDo - avatar
+ 15
the first line is missing... Should be no stars, just 0 😉
27th Jan 2018, 12:08 PM
Nikolay Nachev
Nikolay Nachev - avatar
27th Jan 2018, 1:23 PM
Infinity
Infinity - avatar
27th Jan 2018, 12:22 PM
cHiRaG GhOsH
cHiRaG GhOsH - avatar
+ 7
https://code.sololearn.com/c1RAEig72Nt7/?ref=app
27th Jan 2018, 9:49 PM
Saurabh Tiwari
Saurabh Tiwari - avatar
+ 7
Here's mine, without protection against false input yet https://code.sololearn.com/cruTD3Lx22Q3/?ref=app
28th Jan 2018, 2:34 AM
J.G.
J.G. - avatar
28th Jan 2018, 2:40 AM
J.G.
J.G. - avatar
+ 7
https://code.sololearn.com/WRw4T1mLJy99/?ref=app
30th Jan 2018, 4:50 AM
raz
raz - avatar
+ 5
https://code.sololearn.com/czbqscDwwLCr/?ref=app
27th Jan 2018, 12:08 PM
...
+ 5
Find me a more complex challenge and you will have my code !
27th Jan 2018, 2:46 PM
VcC
VcC - avatar
+ 5
Challenge accepted. This is my code in Javascript. https://code.sololearn.com/Wvk09ZDYeG9g/?ref=app
28th Jan 2018, 10:31 PM
UnknownYmous
+ 4
one more star and number of stars added to n each row
27th Jan 2018, 10:28 AM
VcC
VcC - avatar
+ 4
Hey.. I know I am probably late.. I just saw this challenge late night yesterday.. wanted to complete it as soon as I get back from school today... so here's it.. https://code.sololearn.com/cnp698d6QxKe/?ref=app
5th Feb 2018, 9:33 AM
Aaron Stone
Aaron Stone - avatar
+ 3
Nikolay and VcC Im waiting for your great codes
27th Jan 2018, 2:40 PM
Daniel
Daniel - avatar
27th Jan 2018, 3:10 PM
Sudarshan Rai
Sudarshan Rai - avatar
+ 3
Hello, my solution in JavaScript https://code.sololearn.com/W8ssdY08Wnpy/
28th Jan 2018, 6:15 PM
XavierF
XavierF - avatar