Even or Odd
Easy · Numbers
% is the remainder operator. A number is even when dividing it by 2 leaves no remainder: n % 2 == 0. The result of a comparison is a bool.
Write IsEven(n) that returns true if n is even and false otherwise. Negative even numbers count as even.
Next: Celsius to Fahrenheit