write a program to find whether a given number is even or odd in C language
Answers
Answered by
1
in c++
include<iostream.h>
#include<conio.h>
main()
{
clrscr();
int a;
cout<< "PLEASE ENTER THE NUMBER";
cin>>a;
if (a%2=0)
cout<<"number is even";
else
cout<<"number is odd";
}
Similar questions