Even or Odd:


              main() 
              { 
                  int no;  
                  clrscr();
              
                  printf("Enter the number");  
                  scanf("%d", &no);  
              
                  if (no % 2 == 0)  
                  {  
                      printf("\n The number is even");  
                  }  
                  else  
                  {  
                      printf("\n The number is odd");  
                  }  
              
                  getch();  
              }  
              

Output: