#include<stdio.h>
#include<conio.h>
void main()
{
int num;
clrscr();
printf(" enter any no. :");
scanf("%d",&num);
if(num%2==0)
printf("\n no. is even");
else
printf("\n no. is odd");
getch();
}
#include<conio.h>
void main()
{
int num;
clrscr();
printf(" enter any no. :");
scanf("%d",&num);
if(num%2==0)
printf("\n no. is even");
else
printf("\n no. is odd");
getch();
}
No comments:
Post a Comment