Showing posts with label btiwise operator. Show all posts
Showing posts with label btiwise operator. Show all posts
Posted by
Unknown
at
23:27on Saturday, 13 April 2013
/* Check is number even or odd*/
#include<stdio.h>
void main(){
int a;
printf("Enter the value : ");
scanf("%d",&a);
if(a&1)
printf("\n Number is odd");
else
printf("\n Number is even ");
}