#include
#include
void main()
{
clrscr();
int m,n;
printf("Enter two nimbers:");
scanf("%d%d",&m,&n);
if(m%2==0)
printf("\nThe number %d is even",m);
else
printf("\nThe number %d is odd",m);
if(n%2==0)
printf("\nThe number %d is even",n);
else
printf("\nThe number %d is odd",n);
if(m%n==0)
printf("\nThe number %d is divisble by %d",m,n);
else
printf("\nThe number %d is not divisble by %d",m,n);
getch();
}
0 comments:
Post a Comment