Search:

Type: Posts; User: GReaper

Search: Search took 0.02 seconds.

  1. Adding to my prev post: Note that you should...

    Adding to my prev post:
    Note that you should prefer (n % 2) instead of (n & 1) when dealing with signed integers.
  2. No need to, these are actually the definitions of...

    No need to, these are actually the definitions of odd and even numbers, as you said:
    ( Only difference, I include all integers )

    n ∈ ℤ
    even = 2n
    odd = 2n + 1
Results 1 to 2 of 2