Hello everyone, this is my first post as i am just beginning to learn to program using C! my question is how would i go about asking for a phone number using scanf() with the exact format of (xxx)xxx-xxxx and then printing their answer to be in the format of xxx-xxx-xxxx?
Example of my program:
Please enter your phone number as (xxx)xxx-xxxx (exactly as shown, with no spaces): (123)456-7890 (This could be any number)
Your phone number is 123-456-7890
Thanks for the help!