r/badcode •

[deleted by user]

[deleted] — view deleted post

0 Upvotes

41 comments sorted by

View all comments

Show parent comment

1

u/2HornsUp Jun 16 '19

Should this,

if(num.charAt(i) == '9') digit = 0;

Be this?

if(num.charAt(i) == '9') digit = 9;

2

u/IAmAnIssue Jun 17 '19

It's a feature