How to use whether a number is even or odd in C language

Function to Odd or Even Numbers

On this page

Function

Program to use whether a Number is Even or Odd in C Language

#include <stdio.h>
void find(int n);
int main()
{
    int num;
    printf("Enter a Number : ");
    scanf("%d", &num);
    find(num);
    return 0;
}
void find(int n)
{
    if (n % 2 == 0)
        printf("%d is Even\n", n);
    else
        printf("%d is Odd\n", n);
}

Output

Enter a Number : 444
444 is Even