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*

6
  • \$\begingroup\$ Should that be % 2 in the triple explanation? \$\endgroup\$ Commented Mar 12, 2018 at 18:01
  • \$\begingroup\$ @LarsW: Yes indeed :) \$\endgroup\$ Commented Mar 12, 2018 at 19:42
  • \$\begingroup\$ @Emigna I think "check if even" is actually 2%_ right? \$\endgroup\$ Commented Mar 15, 2018 at 11:36
  • \$\begingroup\$ 2 + (2 % 2 == 0) -> 2 but 2 + !(2 % 2 == 0) -> 3 (for your explanation). \$\endgroup\$ Commented Mar 15, 2018 at 11:36
  • \$\begingroup\$ @MagicOctopusUrn 2%_ is the same as È yes. Not sure what you mean about the explanation. 2+(2%2==0) = 2+(0==0) = 2+1 = 3. It probably would have been clearer if I had explanded the computations. \$\endgroup\$ Commented Mar 15, 2018 at 11:49