Answers for "how to check lsb is set"

0

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;
}
Posted by: Guest on May-05-2020

Code answers related to "how to check lsb is set"

Browse Popular Code Answers by Language