C program to find even or odd

#include<stdio.h>

int mian()

{
    int n;
    printf("enter the number\n");
    scanf("%d",&n);
    if(n%2==0)
    {
        printf("evev number\n");
    }
    else
    {
        printf("odd number\n");
    }
}

Output:
enter the number
5
odd number

More methods:

No comments:

Post a Comment