#include main() { unsigned char status; unsigned char temp; printf("\nType in a Hex value\n"); scanf("%X",&status); temp=status&0x01; if (temp==0x01) printf("D0 is high"); else printf("D0 is low"); }