title: How to check next element in the array?
body: <p>I'm learning and currently trying to write a simple multiple choice quiz. I am not allowed to write it simply with if else statements.
  I'm trying to make it so that it asks the question the user inputs the answer (that's all fine) but a separate class works out if it's right or not. 
  Where my code has the array with a blank index I'm wondering how after the first iteration it would check the next index when that method was called upon again in the next question. I tried to use a for each but then get an error regarding not every path has an outcome. <br/>
  <code>private static readonly string[] answerArray = new string[5] { "C", "A", "B", "A", "C" };</code></p>
  
  <pre><code>    public static bool AnswerCalc(string ain)
      {
          if (ain == answerArray[])
          {
              Console.WriteLine("Correct");
              return true;
          }
          else
          {
              Console.WriteLine("Sorry that's wrong");
              return false;
          }
      }
  </code></pre>
  
  <p>I had it as a bool as that's how I was keeping score. </p>