3
Reply

C# Coding Trouble

William Langly

William Langly

Oct 28 2017 10:21 AM
287
I am really stuck on how to do this:
 
Prompt a user to enter a zip code, and display a message indicating whether the zip code is in the company’s delivery area.
 
For example if the user enters a zip code in the array, such as 60007, the output should be Delivery to 60007 ok.
 
If the user enters a zip code not in the array, such as 60008, the output should be "Sorry - no delivery to 60008."
 
Here is what i have so far:
 
{
static void Main()
{
string[] zips = {"12789", "54012", "54481", "54982", "60007",
"60103", "60187", "60188", "71244", "90210"};
}
}

Answers (3)