C Program to Check Whether a Number is Even or Odd
Cprogramming
-------------------------------------------
#include<stdio.h>
#include<conio.h>
void main()
{clrscr();
int n;
printf("enter the number\n");
scanf("%d",&n);
if(n%2==0)
{printf("even number");
}
if(n%2==1)
{printf("odd number");
}
getch();}
---------------------------------------------
Comments
Post a Comment