I am trying to write a program that takes a 10 digit phone number and inserts hyphens between the 3rd and 4th digit and the 6th and 7th digit
eg. Enter phone number: 5553459875
Your number is 555-345-9876
I've decided that reading the number as an integer won't work and tried reading each as a char but then it still doesn't print how I want it to
Any help would be appreciated
Thanks