{ A destination to learn coding }

Finding odd and even numbers


#include < stdio.h >
int main()
{
    int a,b;
    printf("Enter any number\n");
    scanf("%d",&a);
    b=a%2;

    if(b==0)
    {
        printf("The number is even\n");
    }

    else
    {
        printf("The number is odd\n");
    }

    return 0;
}