Write a C program Find the even or odd number.
#include<stdio.h>
#include<conio.h>
void main()
{
int a;
clrscr();
printf("Enter Value of A ");
scanf("%d",&a);
if(a%2==0)
printf("Even");
else
printf("Odd");
getch();
}


0 Comments