Mar-11-2018, 01:58 PM
nom % 2
- This operator is called modulo operator and it yields the remainder of the division.1 == x
checks if x is equal to 1.The whole expression
1 == num % 2
checks if num is odd.
Simple Code Understanding
|
|
Messages In This Thread |
Simple Code Understanding - by jster2001 - Mar-11-2018, 01:52 PM
RE: Simple Code Understanding - by wavic - Mar-11-2018, 01:58 PM
|