 <p>Update part of your code like this:</p> <pre><code>public int Min(int[] numbers) { int m = numbers[0]; for (int i = 0; i &lt; numbers.Length; i++) { if (m &gt; numbers[i]) { m = numbers[i]; } } return m; } public int Max(int[] numbers) { int m = numbers[0]; for (int i = 0; i &lt; numbers.Length; i++) { if (m &lt; numbers[i]) { m = numbers[i]; } } return m; } </code></pre> <p>EDIT: This will help you get rid of the error you are getting. But you still need to figure out the logic on returning the correct value. </p> <p><strong>The reason you were getting this error is because, if in case none of the numbers in the array <code>int[] numbers</code> that you are passing to the methods satisfy the if condition <code>if (m &gt; numbers[i])</code>, the code would never reach the return statement.</strong></p>