identificationdivision. program-id. while. author. "David Gries". * aus "Verification, Theory and Practice" * Dershowitz 2004, p264 date-written. 5.1.2011. date-compiled. datadivision. working-storagesection.
78 a value 1.
78 b value 100.
77 i pic 99.
77 ip1 pic 99.
77 j pic 99. linkagesection.
01 t occurs b pic 99. proceduredivisionusing t. move b to j performuntil j<=a move a to i performuntil i>=b add 1 to i giving ip1 if t(i)>=t(ip1) then move t(ip1) to t(i) end-if add 1 to i end-perform add 1 to j end-perform end-program while.
¤ Dauer der Verarbeitung: 0.14 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.