I am trying to answer a question for a homework assignment. I have to split an input of numbers into a phone number. The input is 8005551212 and the output needs to look like 800-555-1212.
My question is that I do not know how to specifically split a section of the numbers. I figured out how to use % to select the rightmost digits. Now, I just need to isolate 800 and 555.
Thank you so much!