Computers and Technology
Computers and Technology, 25.01.2021 20:50, ronsosaa

Phone number breakdown. Given an integer representing a 7-digit phone number, excluding the area code, output the prefix and line number, separated by a hyphen.
Ex: If the input is 5551212, the output is:
555-1212
Hint: Use % to get the desired rightmost digits. Ex: The rightmost 2 digits of 572 is gotten by 572 % 100, which is 72.
Hint: Use / to shift right by the desired amount. Ex: Shifting 572 right by 2 digits is done by 572 / 100, which yields 5. (Recall integer division discards the fraction).
For simplicity, assume any part starts with a non-zero digit. So 011-9999 is not allowed.
must be written in coral language

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 02:30, chaaaa
People with high self-esteem: accept their strengths and weaknesses. believe that failed experiences are failures of their whole self. feel good about who they are only when they reach total success. need positive external experiences to counteract negative feelings that constantly plague them.
Answers: 1
image
Computers and Technology, 23.06.2019 04:31, genyjoannerubiera
This graph compares the cost of room and board at educational institutions in texas.
Answers: 1
image
Computers and Technology, 23.06.2019 06:20, kiarakagni
What is a point-in-time measurement of system performance?
Answers: 3
image
Computers and Technology, 23.06.2019 08:30, Bradgarner772
Based on your knowledge of a good network, describe what you think is a perfect network would be. what kind of information and resources could users share on this network. what would the network administrator do? what kind of communication would be used?
Answers: 1
Do you know the correct answer?
Phone number breakdown. Given an integer representing a 7-digit phone number, excluding the area co...

Questions in other subjects:

Konu
English, 01.02.2021 07:40
Konu
Mathematics, 01.02.2021 07:40
Konu
Mathematics, 01.02.2021 07:40