We Post only the Best Stuff

Check whether number is Even or Odd in C Program

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:-

#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
Support : Contact Us | Privacy Policy | Site Map
Copyright © 2013. Tech Jatt - All Rights Reserved
Site Design by Nitin Kundu Licensed to Tech Jatt
Proudly powered by Blogger