Eingabe: Zahlen a, b, c, d, e.
if (a > b) { swap (a, b); }
if (c > d) { swap (c, d); }
if (e > b) {
if (e < d) { swap (e, d); }
} else {
swap (d, e); swap (b, d);
if (a > b) { swap (a, b); }
}
??? (=> demnächst autotool)
Ausgabe: a, b, c, d, e.