Question: Write a C program Results using scanf and printf separately in C. Write a C program named as getPhoneNumber.c that prompts the user to enter

Write a C program

Results using scanf and printf separately in C.

Write a C program named as getPhoneNumber.c that prompts the user to enter a telephone number in the form (999)999-9999 and then displays the number in the form 999-999-999:

Enter phone number [(999)999-9999]: (404)123-4567 You entered 404-123-4567

Question: Execute your getPhoneNumber.c and attach a screenshot of the output. Then write the source code of getPhoneNumber.c in your answer sheet.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!