Main Program
double decode_char(char code);
char code1, code2, code3;
printf("\n\nEnter three codes. ");
if(c1 == -999.0 || c2 == -999.0 || c3 == -999.0)
printf("\n\n\tBad code - cannot compute R.\n");
R = (10.0*c1 + c2)*pow(10.0, c3);
printf("\n\n\tResistance in ohms:\t%f\n", R);
This is program pg173.c.