Que - make a program by using conditional statement?
#include<iostream>
using namespace std;
int main()
{
int num;
cout<<"enter any number :- ";
cin>>num;
if(num/2==0)
{
cout<<"entered number is even";
}
else
{
cout<<"entered number is odd";
}
return 0;
}
Result:-