I think OP means that the program should only convert individual digits to char representation, but should not convert numbers like 68 to char which will result in a character like 'D'. In that case, OP should be calling the isdigit function prior to converting