I've done it but I have a feeling it's quite a spaghetti code ;)
To anyone who also solved it: I wonder how many lines your solution had in intelliJ.
Mine had 48 lines (including all the stuff overwritten by CodeGym plugin and solely one space line in the code itself :O)
Is there any smarter way?
Isn't it quite a Spaghetti code?
Dyskutowane
Komentarze (10)
- Popularne
- Najnowsze
- Najstarsze
Musisz się zalogować, aby dodać komentarz
Lisa
8 października 2021, 11:34
Ha, a show your dick thread... I'm in, and I have a huuuuuuge one.... yeah, yeah 😜🤪
0
Pinok
8 października 2021, 11:30
0
Kacper Wantulok
14 listopada 2020, 19:14
0
Tomasz Witkowski
12 sierpnia 2020, 22:21
Zadziała sortowanie bąbelkowe wprowadzonych liczb i wyświetlenie środkowej (można użyć tablic)
0
Rafal Klimek
8 maja 2020, 15:59
+1
Thomas
8 maja 2020, 16:29
or
+1
arson
6 lutego 2020, 09:28
this is my code, I had 33 lines
0
Adrian Zacharek
6 stycznia 2020, 17:52
if((b>=a||c>=a)&&(b<=a||c<=a))
System.out.println(a);
else if((a>=b||c>=b)&&(a<=b||c<=b))
System.out.println(b);
else if((a>=c||b>=c)&&(b<=c||a<=c))
System.out.println(c);
+4
Enid
1 stycznia 2020, 13:04
thanks, Jacek!
0
Jacek
30 grudnia 2019, 23:04
I added a method which compare 3 numbers and call it in main method but it's also about 50 lines of code : )
0