C Programming to decide if the number is odd or even
/*to decide odd or even*/ #include<stdio.h> #include<stdlib.h> int main( ) { int num; printf ("enter number: "); scanf ("%d",&num); if (num%2==0) printf ("%d is even",num); else printf ("%d is odd",num); system ("pause"); return 0; }
No comments:
Post a Comment