Exercise 1: Even or Odd

In this exercise, you are required to check whether the number is Even or Odd.

Problem Statement

Write a code which will check whether a given integer number is even or odd. Think along the lines of using if-else condition.

Sample input

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy