identificationdivision. program-id. dahl-p125. * aus O-J Dahl - Verifiable Programming author. Jens. date-written. 5.1.2009. date-compiled. datadivision. working-storagesection. 77 i pic9(4). 77 j pic9(4). 77 k pic9(4). 77 te pic9(4). linkagesection. 77 n pic9(4). 77 a pic9(4) occurs100. 77 b pic9(4) occurs100. proceduredivisionusing n a b. performvarying i from1until i > n if i<=n then move a(j) to a(i) else move j to b(i) move1to k performuntil b(k) not= j add1to k end-perform move i to b(i) move k to b(k) move a(i) to te move j to b(te) if k=i thenmove j to a(i) elsemove k to a(i) end-if end-if end-perform end-program dahl-p125.
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.