Program to Display whether entered no. is even or odd

//Program to Display whether entered no. is even or odd
#include<stdio.h>
#include<conio.h>
int main()
{
int a;
clrscr();
printf("Enter any One Integer Numbers\n");
scanf("%d",&a);
if(a%2==0)
printf("Entered Integer is Even");
else printf("entered Integer is Odd");

getch();
return 0;
}


To Run this Program Copy it in text editor and save as .c
Then double click on it and then it will get opened in your compiler.
Click on run.

No comments:

Post a Comment