Question: Valid ZIP codes for delivering mail within the United States are in the range 1 0 0 0 0 - 9 9 9 5 0

Valid ZIP codes for delivering mail within the United States are in the range 10000-99950 inclusive. Write an if statement that outputs "Incorrectly formatted ZIP code" if the input codeInput is not in this range. Otherwise, output "Correctly formatted ZIP code". End each output with a newline.

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!