Is Even or Odd
EasyAcceptance: N/A
Given an integer n, return true if the number is even, otherwise return false.
Example 1:
Input: n = 4
Output: true
Explanation: 4 is even
Example 2:
Input: n = 7
Output: false
Explanation: 7 is odd
Constraints:
- -1000 <= n <= 1000
Discussion
Please login to view and join the discussion.
Login to ContinueLoading...
Status:Not run yet
Run your code to see results