Write a program that prompts for a phone number of 10 digits and two dashes, with
dashes after the area code and the next tree numbers. For Example, 017-555-1212 is a
legal input.
Display if phone number entered is a valid format or not and display if the phone
number is valid or not (i.e.contains just digits and dash at specific places.

This question has not been answered yet!
What are you looking for?