Hallo,
da ich gerade an einer Lotto Simulation arbeite,
und darunter auch mit Arrays arbeite,
habe ich Probleme herauszufinden ob in einen Array doppelte Zahlen vorkommen. Natürlich könnte ich dann zig:
if(getippt[1]==getippt[2])
{
goto abfrage;
}
else
{
goto blablba;
}

Das wäre allerdings zu umständlich.
Also bräuchte ich Hilfe ^^
Der Array sieht so aus:
int array[6]={zahl1, zahl2, zahl3, zahl4, zahl5, zahl6};

help me pls. :wink: