Saturday, October 12, 2013

Program to find whether the given number is even or odd.


#include<conio.h>
#include<stdio.h>

int main()
{
int A;
printf("\n enter the number:");
scanf("%d",&A);
if(A%2==0)
printf("\n the number is even ");
else
printf("\n the number is odd ");
getch();
return 0;
}

No comments:

Post a Comment