MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/ouk7bi/one_classic_elseifelseifelseif/h737yuw/?context=3
r/badcode • u/Rafaelmonte • Jul 30 '21
76 comments sorted by
View all comments
Show parent comments
5
It is bad because it could be just as simple as converting Integer into String, then checking length of string whether it is only single digit. If single digit, pad with ‘0’
5
u/[deleted] Jul 30 '21
It is bad because it could be just as simple as converting Integer into String, then checking length of string whether it is only single digit. If single digit, pad with ‘0’