how to check lsb is set
#include<stdio.h>
#include<stdlib.h>
int main()
{
int num;
printf("Enter a number\n");
scanf("%d",&num);
if(num & 1)
printf("LSB of number is set \n");
else
printf("LSB of number is not set \n");
return 0;
}