Find odd and even number through C programming

 Find odd and even number through C programming :

Any integer is input through the keyboard, a C program to find out whether it is an odd number or even number . 
 #include<stdio.h>  
 int main()  
 {  
      int x;  
      printf("Press any Integer :");  
      scanf("%d",&x);  
      if(x%2==0)  
           {printf("This is even number .");  
           }  
      else       
         {printf("This is odd number .");  
            }  
      return 0;  
 }  
If you have any query about this , then comment below .I am happy to help you .
Share:

Post a Comment

For query , suggestion and others , please comment below. Don't share external link or spam on comment box . 💌

Previous Post Next Post