Skip to main content

Write a C program to determine whether a number is odd or Even and print the massage Number Is Even or Number Is Odd


#include<stdio.h>
#include<conio.h>
main()
{
    int n;
    printf("Enter the number is here:");
    scanf("%d",&n);
    if(n%2==0)
    {
        printf("Number is Even");
    }
    else
    {
        printf("Number is Odd");
    }
    
    getch();
}