Write a C Program that Enters a 10- Digit Telephone Number



Write a C Program that Enters a 10- Digit Telephone Number

Write a C program that enters a 10- digit telephone number ( the first three digits refer to the area code, the next three digits refer to the exchange code, and the remaining four digits refer to number), prints the parts of the number and complete telephone number and addition of area code and exchange code in the following format.

Sample Input:
1234567890

Sample Output:
The area code is: 123
Exchange code is: 456
Number is: 7890
The complete telephone number is:(123)456-7890
Addition of area code and exchange code is: 579

Asked by: Gopi Krishna on Aug 30, 2019.

Be the first to answer this Question !

Your Answer :

Name *:

Email *: (Required but will not be displayed)

» Your answers will be displayed only after manual approval.

Related Questions


No related questions found for this page.

Sponsored Links


Current Affairs

Quick Links