Problem reading a char or string

how could I have the - between each group of 3 numbers ?

You know how many characters have been added to the array so put a '-' in at the appropriate time. Don't forget to make the array large enough.

Is the array going to be used as s string or just an array of chars ?