+ 11
Pattern challenge 2
use any language to print this 1 23 456 78910 winners are: web: https://code.sololearn.com/WVAtmsYIqKdk/?ref=app java: https://code.sololearn.com/cVygoFXKV0j4/?ref=app ruby: https://code.sololearn.com/cLsP0Ck1l6nj/?ref=app Python: https://code.sololearn.com/cfSqbhE33TPQ/?ref=app
42 Answers
+ 12
https://code.sololearn.com/cVygoFXKV0j4/?ref=app
+ 17
+ 9
here goes my ruby
https://code.sololearn.com/cLsP0Ck1l6nj/?ref=app
+ 8
I made my code earlier, but my phone was nearly going off...
I was even the first to "like" sir Krishna's submission...
https://code.sololearn.com/c2vbcg3k4B6B/?ref=app
^-^
+ 7
@abdur what about a single line!!!!!!
https://code.sololearn.com/crUC63Sm75UL/?ref=app
+ 7
@abdur.......although my code is super-compressed in 1 line......
if you see the functionality and algorithm.......this is the worst code ever written in sololearn!!!
😂😂😂😂
+ 7
I was inspired and created one with no for loops at all, just recursion.
https://code.sololearn.com/cUl07LlFzXzT/?ref=app
+ 6
https://code.sololearn.com/c6eSo2PYA0E1/?ref=app
3 lines
hard coded -> not so good
+ 6
😏Well nice questions
import java.io. *;
import java.util. *;
public class pattern
{
public static void main (String []args)throws IOEXCEPTION
{
Scanner sc =new Scanner ( System.in);
int len,line,a,x;
System.out.print ("Enter any number");
len=sc.nextInt ();
line=1;
while (line <=len)
{
a=1;
while (a <line)
{
System.out.print (x);
a++;
}
System.out.println()
line++;
}
}
}
+ 6
@Irwin here you go
https://code.sololearn.com/ci3xMCXu5vbY/?ref=app
+ 5
as I know ur the master of challenge sir
+ 5
My try. Generic solution.
https://code.sololearn.com/cfSqbhE33TPQ/?ref=app
+ 5
@Lopez. How can I like your code...?
@Garikai. Nooooooo...
^-^
+ 5
@Lopez I guess Femyk was hoping you would present it as a code on your profile, and add the link in your answer. Liking it here is just like it's merely an answer, not really a code.
@Femyk... I guess I'm right...
+ 4
@ghosh lol
+ 4
nice try guys but u should use loops winners are in the mentioned above
+ 4
😏Almost in every languages this question was solve.
well that's wonderful. 🙄
(Now some more Challenge )
+ 4
@ Irwin Lopez - I did it with recursion in Python.
https://code.sololearn.com/cbb2Bz9MYVZz/?ref=app
+ 3
@femyk aadi louis check out my last code
+ 3
here is mine##
smallest...7 lines😊😀☺##
@ Aadi
https://code.sololearn.com/cLwSmx8fTD9R/?ref=app