I have a question, I want to know how i can show on CONSOLE the 2 highest of N entered numbers? Im doing something like this:
Console.WriteLine("Enter the weight of the fish:");
if(decimal.TryParse(Console.ReadLine(), out _fishWeight))
{
if (_fishWeight > _highest2)
{
_highest = _fishWeight;
if (_fishWeight < _highest1)
{
_highest = _fishWeight;
}
}
}
but it doesn't work. It only shows me the _highest1 but not the other _highest...
If someone can help me, I would be really glad!