Find Odd and Even Number

#include "stdio.h"
int main (void)

{
        int a;
        printf ("Enter the value of A: ");
        scanf("%d",&a);
        if (a%2==0)
        {
           printf ("Number is Even\n");
        }
        else
        {
            printf("Number is Odd\n");
        }
        system("pause");
        return 0;
}

0 comments:

Post a Comment