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++.

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
Get step-by-step solutions from verified subject matter experts
