#include int main() { /*~n=-(n+1) int a=-10; int b=~a; printf("a=%d",a); printf("b=%d",b); */ /*even or odd 1 er shathe & korle odd hole true hobe,even hole false hobe int x; scanf("%d",&x); if(x&1){ printf("%d is odd",x); } else printf("%d is even",x);*/ /*nth bit er value on korte hobe printf("enter your number:"); int num,n,change; scanf("%d",#); printf("enter the number of bit you want to reverse:"); scanf("%d",&n); change=(1<> 1; } printf("number of 1:%d",count);*/ /* 2^n er n=? ber korte hobe int n, count = 0; printf("enter your number:"); scanf("%d", &n); while (n) { if (!(n & 1)) { count++; } else {break;} n = n >> 1; } printf("%d is %dth power of 2", n, count);*/ /*2 ta number same kina int x,y;; printf("enter two number:"); scanf("%d %d", &x,&y); if(!(x ^ y)){ printf("the numbers are equal"); } else{printf("the numbers are not equal");}*/ //bits=sizeof(int)*8 return 0; }