program to check the given number is even or odd .

 // Program to check the given number is even or odd.

#include <stdio.h>
#include <conio.h>

int main()
{
    int n;
    printf("Enter the number :\n");
    scanf("%d", &n);
    if (n % 2 == 0)
    {
        printf("%d is even number!\n", n);
    }
    else
    {
        printf("%d is odd number!\n", n);
    }
    return 0;
}
Output.
Enter the number : 60 60 is even number!
****** Thank you *****

Comments

Popular posts from this blog

18 Amazing programs in C.