Program to find Even or ODD number of a given number

#include<conio.h>

#include<stdio.h>

void main()

{

int a;

clrscr();

printf("Enter a Number to find out that the Number is even or odd");

scanf("%d",&a);

if(a%2==0)

printf("Number is even");

else

printf("Number is odd");

getch();

}

Outout

Enter a Number to find out that Number is even or odd=25

Number is odd 

Enter a number to find out that number is even or odd=26

Number is even

Comments

Popular posts from this blog

Gove confirms mandatory housebuilding targets for councils will be abolished in face of Tory rebellion – UK politics live

Kotak Mahindra Bank Recruitment 2022 Released for Graduate Candidates And Apply Online