Search⌘ K
AI Features

Exercise 1: Even or Odd

Understand how to use if-else conditions in C++ to check whether an integer is even or odd. Practice writing basic conditional logic to strengthen your foundational programming skills.

Problem statement

Write a code that will check whether a given integer ...