i am inputting numbers as characters, then i need to change to their numeric value then add

With single digits all you need to do is subtract the character '0' from the value. For mutidigit numbers you need to perform a conversion, and the easiest way to do so is with strtol (in <stdlib.h> for C or <cstdlib> for C++), sscanf (recommended only for C), stringstream (for C++), or anything similar. Can you be more specific as to what these "numbers" are that you're converting and whether this is C or C++?