Question: This is in C, not C++. Write a program that generates a random telephone number. The output should be in this format: x?? - y??

This is in C, not C++.

This is in C, not C++. Write a program that generates a

Write a program that generates a random telephone number. The output should be in this format: x?? - y?? - ???? The two positions denoted by 'x' and 'y' cannot be 0 or 1. The other positions can take any value from 0 to 9. Use the function 'rand' to generate the random numbers. Show multiple samples of the output

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!