#include<stdio.h>
#include<conio.h>
void main()
{ int a;
clrscr();
printf("program to check whether no. entered is even or odd");
printf("\n\n enter value of a : ");
scanf("%d",&a);
if((a%2)==0)
{ printf("\n\n\t no. is even ");
}
else
{ printf("\n\n\t no. is odd ");
}
getch();
No comments:
Post a Comment
Guys if you think something is wrong or should be edit than please do comment.