Skip to main content
Source Link

Comment by @PeterCsala:

It is minor, but instead of these num -= billions * 1_000_000_000; calculations you could use simply num %= 1_000_000_000; compound assignment operator.

Post Made Community Wiki by Sᴀᴍ Onᴇᴌᴀ