title: Find if a number is within Fibonacci range
body: <p>I have printed some Fibonacci numbers. Now I want to see if a number / which I enter / is within that range and if it is, to show it's position.
  This is what I have so far:</p>
  
  <pre><code>using System;
  
  namespace SomeFibonacciPrimes
  {
      class SomeFibonacciPrimes
      {
          static void Main()
          {
              int first = 0;
              int second = 1;
              int third = 1;
              for (int i = 0; i &lt; 50; i++)
              {
                  third = second;
                  second = first + second;
                  first = third;
                  Console.WriteLine(second);                      
              }
              Console.WriteLine("Enter a number to find if it's in Fibonacci      range:");
              int number = int.Parse(Console.ReadLine());
              if (number == second)
              {
                  Console.WriteLine("Your number is within the Fibonacci range.");
              }
              else
              {
                  Console.WriteLine("Your number is NOT within the Fibonacci range");
              }
         }
     }
  }
  </code></pre>
  
  <p>I can't understand why the If statement prints the else result if I enter a number that I SEE in the range?!
  I think that after I manage to make the If statement to work, the position is the "i" in the for statement?</p>