C programming

Saturday, January 17, 2009

#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:

Visitors

PlugIn.ws - Free Hit Counter, Web Site Statistics, Traffic Analysis

  © Blogger template Leaving by Ourblogtemplates.com 2008

Back to TOP