Skip to main content
Search
Search This Blog
Adsense
CFETCH
Share
Get link
Facebook
Twitter
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.
July 12, 2013
A C Program to ask the price of an item in decimal and separate rupees and paise.
Comments
Post a Comment