Pattern challenge 3 | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 5

Pattern challenge 3

hi guys I love patterns so here is another challenge use loops in any lang to print this 1 2 1 3 2 1 4 3 2 1 5 4 3 2 1 6 5 4 3 2 1

27th Jul 2017, 4:50 PM
Aadi
16 ответов
27th Jul 2017, 6:47 PM
Louis
Louis - avatar
+ 3
u won @PR wow so quick now I want to see others try also to learn something new
27th Jul 2017, 5:07 PM
Aadi
+ 3
here is mine...@Aadi.. Enter any input you want. https://code.sololearn.com/cU7fbLAxm8Dp/?ref=app
27th Jul 2017, 8:14 PM
sayan chandra
sayan chandra - avatar
+ 3
Hi Sayan you have a very valid input ( no pun intended), but the reason I chose not to use input is that if I do, I need to add error checking, incase someone enters a char instead of int. So basically I am too lazy. but thanks for the input.
27th Jul 2017, 8:24 PM
Louis
Louis - avatar
+ 3
Here is mine. Input checking included https://code.sololearn.com/cA3LpZ7t301l/?ref=app
27th Jul 2017, 8:27 PM
Vari93
Vari93 - avatar
28th Jul 2017, 7:15 AM
Garikai
Garikai - avatar
27th Jul 2017, 9:30 PM
Julian Fechner
Julian Fechner - avatar
+ 2
https://code.sololearn.com/wzozp5HXsdlc/?ref=app
28th Jul 2017, 6:12 PM
Mufaddal Mustafa
Mufaddal Mustafa - avatar
+ 2
nice guys happy to see efforts of u all
29th Jul 2017, 3:24 AM
Aadi
+ 1
hello louis... your code is a beautiful one.. i'd suggest to replace pattern(6) by pattern(int(input(' ')) #if u like that## thank you
27th Jul 2017, 8:19 PM
sayan chandra
sayan chandra - avatar
+ 1
version 2... shorter... # Aadi challenge https://code.sololearn.com/c1i45BGyeF80/?ref=app
27th Jul 2017, 8:28 PM
sayan chandra
sayan chandra - avatar
+ 1
Omg lol, that's a silly mistake. It's fixed
27th Jul 2017, 8:31 PM
Vari93
Vari93 - avatar
+ 1
HEY CODERS OUT THERE... NEW *DAILY CHALLENGE* RIGHT HERE: https://www.sololearn.com/discuss/645450/?ref=app
21st Aug 2017, 3:44 PM
Julian Fechner
Julian Fechner - avatar
0
vari93 there is a syntax error in your code at line 10...check it""#
27th Jul 2017, 8:30 PM
sayan chandra
sayan chandra - avatar
31st Jul 2017, 6:34 PM
bindu velivela
bindu velivela - avatar