Search This Blog

Translate

C program to accept a number and check odd or even using bit wise operator

C program to accept a number and check  odd or even using bit wise operatorc proram using bit wise operator,c program to convert decimal to binary using bitwise operators,c program to swap two numbers using bitwise operator ,check  odd or even using bit wise operator using c


C program to accept a number and check  odd or even using bit wise operator

#include
#include
void main()
{
int no;
clrscr();
printf("Enter the number=");
scanf("%d",&no);
if(no&1)
{
printf("%d is Odd number",no);
}
else
{       printf("%d is Even number",no);

}
getch();
}

C program to accept a number and check  odd or even using bit wise operatorc proram using bit wise operator,c program to convert decimal to binary using bitwise operators,c program to swap two numbers using bitwise operator ,check  odd or even using bit wise operator using c

C Program example List

Google+ Badge