4/15/21

C Program to find Odd & Even Number given by the User.


C Program to Find ODD & EVEN Number given by the user. 

#include<stdio.h>

void main()

{

    int a;

        printf("Enter the Number");

        scanf("%d",&a);

    if (a%2==0)

        printf("Number is Even");

    else

        printf("Number is Odd");

getch();

}

Output :-




0 comments:

Post a Comment

Like us on facebook

blogger templatesblogger widgets

Follow on Twitter

Linkedin

Categories

Contact Form

Name

Email *

Message *

Mad About Computer. Powered by Blogger.