Question: Write a C program that lets a user enter a 5 - digit zip code. Your program must make sure that a user enters exactly
Write a C program that
lets a user enter a digit zip code. Your program must make sure that a user enters exactly digits. Otherwise, your
program displays number of digits that a user just entered and asks until a user enters a digit number.
converts a digit number to text.
Note: your program cannot use strings or any functions from the string library.
Sample code execution #: bold text indicates information entered by a user.
Enter a digit area code:
you entered digits.
Enter a digit area code:
you entered digits.
Enter a digit area code:
you entered digits.
Enter a digit area code:
you entered digits.
Enter a digit area code:
you entered digits.
Enter a digit area code:
eight five seven two one
Sample code execution #: bold text indicates information entered by a user.
Enter a digit area code:
you entered digits.
Enter a digit area code:
nine zero three four six
LAB
: Homework P: Digit number to text
ACTIVITY
#include
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
