Computer Science, asked by aaliyasankar, 6 months ago

how to get c++ output in odd number​

Answers

Answered by srisanjay977
5
  1. C++ program to check if given integer is even or odd.
  2. #include<iostream>
  3. using namespace std;
  4. int number, remainder;
  5. cout << "Enter the number : ";
  6. cin >> number;
  7. remainder = number % 2;
  8. if (remainder == 0)
Answered by Anonymous
12

Answer:

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)

Explanation:

please mark as brain list

Similar questions