BACHELOR OF COMPUTER APPLICATION (B.C.A.) FIRST SEMESTER
Here you will get simple C program
C Language Program for Check The Number is Even or Odd.
IT IS THE SMALLEST LOGIC USED FOR CODING OF THIS PROGRAM.
IN WHICH YOU CAN CREATE OWN VARIABLES AND FUNCTIONS.
User will input only one numbers and that is even or odd,
then their compile will be display on screen.
The program coding is given below.
#include<stdio.h>
#include<conio.h>
void main()
{
int n;
clrscr();
printf("Enter Any No= ");
scanf("%d",&n);
if(n%2==0)
{
printf("Number is Even");
}
else
{
printf("Number is Odd");
}
getch();
}
Output will be given after you compile it.