CODING:
#include<conio.h>
#include<stdio.h>
void main()
{
int num,rm;
clrscr();
printf("Enter any number: ");
scanf("%d",&num);
rm=num%2;
if(rm==0)
printf("\nNumber is even");
else
printf("\nNumber is odd");
getch();
}
 |
CODING |
 |
OUTPUT |
For any query or suggestion please comment below...
No comments:
Post a Comment