BASIC C PROGRAMMING AND TRICKS-TECHNOLOGIES-TECHNICALS
program to find even or odd number
Get link
Facebook
X
Pinterest
Email
Other Apps
#include<stdio.h>
#include<conio.h>
void main()
{
int a;
printf("Enter a value which you want to check=");
scanf("%d",&a);
if(a%2==0)
{
printf("a is even");
}
else
{
printf("a is odd");
}
getch();
}
Comments
Post a Comment