Exercise 1: Even or Odd

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

We'll cover the following

Problem Statement

Write a code which will check whether a given integer number is even or odd.

Hint: Think along the lines of using if-else condition.

Write your code below. It is recommended that you try solving the exercise yourself before viewing the solution.

Good Luck!

Get hands-on with 1400+ tech skills courses.