42 Answers
+ 12
https://code.sololearn.com/cVygoFXKV0j4/?ref=app
26th Jul 2017, 12:20 PM
P R
P R - avatar
26th Jul 2017, 10:17 AM
Krishna Teja Yeluripati
Krishna Teja Yeluripati - avatar
26th Jul 2017, 10:26 AM
cHiRaG GhOsH
cHiRaG GhOsH - avatar
+ 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 ^-^
26th Jul 2017, 2:44 PM
Femyk
Femyk - avatar
+ 7
@abdur what about a single line!!!!!! https://code.sololearn.com/crUC63Sm75UL/?ref=app
26th Jul 2017, 10:48 AM
cHiRaG GhOsH
cHiRaG GhOsH - avatar
+ 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!!! 😂😂😂😂
26th Jul 2017, 10:57 AM
cHiRaG GhOsH
cHiRaG GhOsH - avatar
+ 7
I was inspired and created one with no for loops at all, just recursion. https://code.sololearn.com/cUl07LlFzXzT/?ref=app
26th Jul 2017, 8:14 PM
Louis
Louis - avatar
+ 6
https://code.sololearn.com/c6eSo2PYA0E1/?ref=app 3 lines hard coded -> not so good
26th Jul 2017, 10:45 AM
Abdur-Rahmaan Janhangeer
Abdur-Rahmaan Janhangeer - avatar
+ 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++; } } }
26th Jul 2017, 11:08 AM
Irwin Lopez
Irwin Lopez - avatar
27th Jul 2017, 9:06 AM
cHiRaG GhOsH
cHiRaG GhOsH - avatar
+ 5
as I know ur the master of challenge sir
26th Jul 2017, 10:24 AM
Aadi
26th Jul 2017, 2:53 PM
Louis
Louis - avatar
+ 5
@Lopez. How can I like your code...? @Garikai. Nooooooo... ^-^
26th Jul 2017, 4:34 PM
Femyk
Femyk - avatar
+ 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...
27th Jul 2017, 8:20 AM
Aina Oluwafemi
Aina Oluwafemi - avatar
+ 4
@ghosh lol
26th Jul 2017, 10:49 AM
Abdur-Rahmaan Janhangeer
Abdur-Rahmaan Janhangeer - avatar
+ 4
nice try guys but u should use loops winners are in the mentioned above
26th Jul 2017, 12:26 PM
Aadi
+ 4
😏Almost in every languages this question was solve. well that's wonderful. 🙄 (Now some more Challenge )
26th Jul 2017, 3:42 PM
Irwin Lopez
Irwin Lopez - avatar
+ 4
@ Irwin Lopez - I did it with recursion in Python. https://code.sololearn.com/cbb2Bz9MYVZz/?ref=app
27th Jul 2017, 9:14 AM
Louis
Louis - avatar
+ 3
@femyk aadi louis check out my last code
26th Jul 2017, 2:54 PM
Abdur-Rahmaan Janhangeer
Abdur-Rahmaan Janhangeer - avatar
+ 3
here is mine## smallest...7 lines😊😀☺## @ Aadi https://code.sololearn.com/cLwSmx8fTD9R/?ref=app
26th Jul 2017, 3:41 PM
sayan chandra
sayan chandra - avatar