int main() { int bor, result; printf("Type a value from 0-255: "); scanf("%d",&bor); result=bor&SET; printf("\t%s\t%d\n",binbin(bor),bor); printf("&\t%s\t%d\n",binbin(SET),SET); printf("=\t%s\t%d\n",binbin(result),result); return(0); }
int main() { int input; printf("Type a value 0 to 65535: "); scanf("%d",&input); printf("%d is binary %s\n",input,binbin(input)); return(0); }
int main(int argc, char **argv) { int input; printf("Tupe a value 0 to 65535: "); scanf("%d",&input); printf("%d is binary %s\n", input, binbin(input)); return 0; }
int main(int argc, char **argv) { int b,x; b = 0x15; for(x=0;x<8;x++) { printf("%s 0x%04X %4d\n", binbin(b),b,b); b<<=1; } return 0; }
int main() { int b,x; b=17; for(x=0;x<8;x++) { printf("%s 0x%04X %4d\n", binbin(b),b,b); b<<=1; } return(0); }