Question: 3 . ( Using loop and conditional statements together operating on character variables ) Write a C program that converts the phone number having numbers
Using loop and conditional statements together operating on character variables
Write a C program that converts the phone number having numbersletters into one having numbers only.
Allow the user to enter a phone number. It can contain numbers, letters, and symbols see sample inputs below
The program will output any number elements.
The program will also echo a hyphen in addition to numbers.
The program will output for nonnumber elements.
You will use "while" loop structure where looping is required.
Ex: If the input is: HOLIDAY
The output will be: Numbers only:
If the input is: holiday
The output will be: Numbers only:
If the input is:
The output will be: Numbers only:
If the input is: mathrmzywx$ #
The output will be: Numbers only:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
