#include<conio.h>
#include<stdio.h>
void main()
{
int value;
clrscr();
printf("Please enter a value you want to evaluate:->") ;
scanf("%d",&value) ; //to catch the value of the user
if(value%2= =0) //condition for checking even and odd.
{
printf("The feeded value is Even");
}else{
printf("The feeded value is Odd");
}
getch(); //To hold output console intact untill u press any key from keyboard
}
No comments:
Post a Comment
Please write your Views about this Post here:->;