Write a Program in c to find odd or even

In this program, we will find odd or even numbers given by the user

#include<stdio.h>
#include<conio.h>
    Void main()
        {
            int n;
            printf("Enter an integer");
            scanf("%d", &n);
            if (n%2==0)
            printf("This is even number");
            else
            printf("This is odd number");
            getch();
        }

Leave a Reply

Your email address will not be published. Required fields are marked *