Computer Science, asked by kumarimadhu99935, 2 days ago

Write a program in C++ to print whether the number is odd or even?​

Answers

Answered by tm877825
0

Answer:

Program to check EVEN or ODD using if else in C++

#include <iostream> using namespace std; int main() { int num; cout<<"Enter an integer number: "; cin>>num; if(num%2==0) cout<<num<<" is an EVEN number."<< endl; else cout<<num<<" is an ODD number."<<

(num%2==0)? ( ...

if(num & 0x01) cout<<num<<" is an ODD number."<<

Similar questions