Previous Program »» C Program to compare 3 Numbers
This program will teach you about the coding of program which will tell us whether a given number is even or odd. The coding of this program goes like this:-
Next Program »» C Program to check Leap Year
For further Knowledge and Tutorial Keep Visiting :-
TechJatt - The source for all kind of Tutorial on Ethical Hacking
Like Us on Facebook or Follow on Twitter or Add to Circles on Google + to remain updated
This program will teach you about the coding of program which will tell us whether a given number is even or odd. The coding of this program goes like this:-
#include <stdio.h>
#include <conio.h>
void main()
{
clrscr();
int=n;
printf("Enter the number: ");
scanf("%d",&n);
if (n%2==0);
{
printf("Number is even");
}
else
{
printf ("Number is odd");
}
getch();
}
Next Program »» C Program to check Leap Year
For further Knowledge and Tutorial Keep Visiting :-
TechJatt - The source for all kind of Tutorial on Ethical Hacking
Like Us on Facebook or Follow on Twitter or Add to Circles on Google + to remain updated