Computer Science, asked by EnoshGonmei, 11 months ago

Write a c++ program to check whether the number is odd or even.

Answers

Answered by abhinaysachan38
3

/*

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

*/

#include<iostream>

using namespace std;

int main()

{

int number, remainder;

cout << "Enter the number : ";

cin >> number;

remainder = number % 2;

if (remainder == 0)

cout << number << " is an even integer " << endl;

else

cout << number << " is an odd integer " << endl;

return 0

Answered by sparshsingh0506
0

Answer:

Write a c++ program to check whether the number is odd or even.

Explanation:

Thanks

Jdjejdhidbjbrbid

Similar questions