Code:
#include
#include
int main(){
int num,n;
printf(“\nEnter an inter value=”);
scanf(“%d”,&num);
n=num%2;
if(n==0)
{
printf(“\n%d is Even”);
}
else
{
printf(“\n%d is Odd”);
}
}

Posted in c++

Leave a Reply

Your email address will not be published. Required fields are marked *