FIX: Falscher Vergleich gefixt
This commit is contained in:
parent
7e0dda5664
commit
d6b49194ee
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ namespace ClassTestExerise2B
|
||||||
biggestUneven = lowerLimit;
|
biggestUneven = lowerLimit;
|
||||||
for (int number = 0; number <= spaceBetween; number++)
|
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;
|
biggestUneven = number + lowerLimit;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue