Even or Odd:



main() 
{
    int no; 
    clrscr();

    printf("enter the no"); 
    scanf("%d",&no);

    if(no%2==0) 
    { 
        printf("\n no is even"); 
    } 
    else 
    { 
        printf("\n no is odd"); 
    }
getch(); 
}
           

Output: