/* Check number is odd or even in c */
For any query regarding c/c++ feel free to contact me on khimanichirag@gmail.com or comment below. I try my best to solve it.
For any query regarding c/c++ feel free to contact me on khimanichirag@gmail.com or comment below. I try my best to solve it.
#include<stdio.h>
#include<conio.h>
void main()
{
int n;
clrscr();
printf("Enter the number: ");
scanf("%d",&n);
if(n%2==0)
{
printf("Number is even");
}
else
{
printf("Number is odd");
}
getch();
}
No comments:
Post a Comment