William Langly

William Langly

  • NA
  • 32
  • 5.2k

C# Coding Trouble

Oct 28 2017 10:21 AM
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)