C programming
A number to check Even or ODD:
#include<stdio.h>
#include<conio.h>
void main()
{
int n;
clrscr();
printf("the number::");
scanf("%d",&n);
if(n%2==0)
printf("\nThe number is even");
else
printf("\nThe number is odd");
getch();
}
No comments:
Post a Comment
Please comment bellow. Share your knowledge