Replace thernary operator with if
I would also split input and sum declarations into separate lines, but that's subjective
Yeah, you right. Now it's better: http://ix.io/2UFG
One liner if is just lazy, IMO If you do a branch in your code, make it visible, with these curly brackets also
Right. Usually, I do it, but right now I'm under vim and I just wanted to write it. 😂
Обсуждают сегодня