how to get c++ output in odd number
Answers
Answered by
5
- 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)
Answered by
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