Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • \$\begingroup\$ You can save some bytes: tio.run/##K0nO@f8/… \$\endgroup\$ Commented Oct 23, 2017 at 0:40
  • \$\begingroup\$ Please be careful to test stuff before suggesting edits. ! has higher precedence than %, so the ==0 remains... Other edits made from your suggestion. Thanks! \$\endgroup\$ Commented Oct 23, 2017 at 1:49
  • \$\begingroup\$ I tested it on my local machine and it seemed to work \$\endgroup\$ Commented Oct 23, 2017 at 9:18
  • \$\begingroup\$ Nobody else is testing the validity of the inputs, so you can remove the 1. line. \$\endgroup\$ Commented Nov 18, 2023 at 19:41
  • \$\begingroup\$ You can save bytes, replacing ==0 by <1 \$\endgroup\$ Commented May 9 at 7:36