Computer Science, asked by rinkumommu6, 3 months ago

Write a C++ program to check whether a number is odd or even?

Answers

Answered by shravankl8073957379
0

Answer:

C++ Program to Check if a given Integer is Even or Odd

* C++ program to check if given integer is even or odd.

#include<iostream>

using namespace std;

int number, remainder;

cout << "Enter the number : ";

cin >> number;

remainder = number % 2;

if (remainder == 0)

Similar questions