title: Access variable inside while loop from outside (C#)?
body: <p>I'm New to C# and I'm trying to reach the value of MAX from the while so i can use it outside but i can't...anyone have some ideas !!! Thanks In Advance </p>
  
  <pre><code>while (Condition)
  {    
      Double MAX = somecode.....
                           .....
  }
  
  Console.WriteLine("The OPTIMAL Value : " + MAX); 
  </code></pre>