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
while (Condition)
{
Double MAX = somecode.....
.....
}
Console.WriteLine("The OPTIMAL Value : " + MAX);
outside scope { inside scope }the outer scope has access to the inner scope but not the other way around.