2 deleted 8 characters in body
source | link

An integer x is considered an even number when dividing x by 2 leaves rest = 0, it is considered an odd number number when x dividing by 2 leaves rest = 1.

Now:

  • 3 / 2 = 1 * 2 rest 1: 3 is odd
  • 2 / 2 = 1 * 2 rest 0: 2 is even
  • 1 / 2 = 0 * 2 rest 1: 1 is odd
  • 0 / 2 = 0 * 2 rest 0: 0 is even

An integer x is considered an even number when dividing x by 2 leaves rest = 0, it is considered an odd number number when x dividing by 2 leaves rest = 1.

Now:

  • 3 = 1 * 2 rest 1: 3 is odd
  • 2 = 1 * 2 rest 0: 2 is even
  • 1 = 0 * 2 rest 1: 1 is odd
  • 0 = 0 * 2 rest 0: 0 is even

An integer x is considered an even number when dividing x by 2 leaves rest = 0, it is considered an odd number number when x dividing by 2 leaves rest = 1.

Now:

  • 3 / 2 = 1 rest 1: 3 is odd
  • 2 / 2 = 1 rest 0: 2 is even
  • 1 / 2 = 0 rest 1: 1 is odd
  • 0 / 2 = 0 rest 0: 0 is even
1
source | link

An integer x is considered an even number when dividing x by 2 leaves rest = 0, it is considered an odd number number when x dividing by 2 leaves rest = 1.

Now:

  • 3 = 1 * 2 rest 1: 3 is odd
  • 2 = 1 * 2 rest 0: 2 is even
  • 1 = 0 * 2 rest 1: 1 is odd
  • 0 = 0 * 2 rest 0: 0 is even