Friday, May 10, 2013

Find The Even And Odd Number

 /* Find The Even And Odd Number */
    /* Suchetan Dey */
   
    #include<stdio.h>
    #include<conio.h>
    void main()
      {
         int a;
         printf("Enter The Number ");
         scanf("%d",&a);
         if(a%2==0)
             printf("This Is An Even Number ");
         else
             printf("This Is An Odd Number ");
         getch();
      }

The Output is :-

 

No comments:

Post a Comment