identificationdivision. program-id. sort-array. * aus Wirth, systematisches Programmieren p. 84 author. "JD". date-written. 11.9.2005. date-compiled. datadivision. working-storagesection. 78 n pic9(4) value10. 77 s pic9(4)V9(4). 77 u pic9(4)V9(4). 77 h pic9(4). 77 j pic9(4). 77 k pic9(4). linkagesection. 77 x pic9(4)V9(4) occurs n. proceduredivisionusing x. * sort array x performvarying h from1by1until h >=n - 1 move h to j performvarying k from h+1by1until k>=n if x(k) > x(j) thenmove k to j end-perform move x(h) to u move x(j) to x(h) move u to x(j) end-perform display"sorted" * now x is sorted end-program sort-array.
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.8 Sekunden
(vorverarbeitet am 2026-06-10)
¤
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 und die Messung sind noch experimentell.