Auto AdSense

Tuesday 4 November 2014

C Program to determine whether Number is Even Or Odd

  #include<stdio.h>
   {
     int n;
     printf("Enter an integer\n");
     scanf("%d",&n);
     if ( n%2 == 0 )
       printf("Even\n");
     else
       printf("Odd:");
     return 0;
   } 

No comments:

Post a Comment