#include<stdio.h>
#include<conio.h>
void main()
{
int n;
clrscr();
printf("\n Enter any number:");
scanf("%d",&n);
if(n%2==0)
printf(" The number is even");
else
printf(" The number is odd");
getch();
}
Output

#include<conio.h>
void main()
{
int n;
clrscr();
printf("\n Enter any number:");
scanf("%d",&n);
if(n%2==0)
printf(" The number is even");
else
printf(" The number is odd");
getch();
}
Output
No comments:
Post a Comment