Write a program to find whether the entered number is positive or negative

//this is a program to find whether the entered number is positive or negative
#include<stdio.h>
#include<conio.h>
void evenodd();
void main()
{
evenodd();

getch();
}
void evenodd()
{
int x;

printf("\n\nEnter the Number: ");
scanf("%d",&x);

if(x%2==0)
printf("\n\nThe entered number is Even");
else
printf("\n\nThe entered number is odd");
}

Previous
Next Post »