Check if a given Number is Even or Odd
Given a positive integer N, the task is to check whether the given number N is Even or Odd. Examples: Input : N = 10 Output : Even Input : N = 5 Output : Odd Method 1: An even number is an integer which is “evenly divisible” by 2. This means that if the integer is divided… Read More »
