Skip to main content
Search
Search This Blog
Adsense
CFETCH
Share
Get link
Facebook
X
Pinterest
Email
Other Apps
Labels
C Programs
July 15, 2013
A C Program to find if the entered number is even or odd.
#include<stdio.h>
#include<conio.h>
void main()
{
int n;
printf("Enter value of n:");
scanf("%d",&n);
if(n%2==o)
{
printf("%d is Even Number",n);
}
else
{
printf("%d is Odd Number");
}
getch();
}
Comments
Popular Posts
January 17, 2014
C program to draw ellipse using Midpoint Ellipse Algorithm.
January 10, 2014
Draw a Line using Equation y=mx+c in C
Comments
Post a Comment