C Program Check even and odd input

C Program  Check even and odd input




#include<conio.h>
#include<stdio.h>
void main()
{
    int num1;
    clrscr();
    printf("Enter number : ");
    scanf("%d",&num1);
    if(num1%2==0)
    printf("%d is Even number ",num1);
    else
    printf("%d is odd number ",num1);
    getch();
}


Output:

Comments

Popular posts from this blog

SKILL ROCKS TECH QUESTIONS

C Program for Analog Clock Design

Php Check is date or not