FIX: Falscher Vergleich gefixt

This commit is contained in:
Nikurasu 2022-01-25 10:15:38 +01:00
parent 7e0dda5664
commit d6b49194ee

View file

@ -79,7 +79,7 @@ namespace ClassTestExerise2B
biggestUneven = lowerLimit;
for (int number = 0; number <= spaceBetween; number++)
{
if (numberCount[number] % 2 != 0 && numberCount[number] < biggestUneven)
if (numberCount[number] % 2 != 0 && numberCount[number] > biggestUneven)
{
biggestUneven = number + lowerLimit;
}