IdentificationDivision. Program-Id. hdivision. Author. "Bergeretti/Carre". * hardware division DataDivision. Working-StorageSection. * variables
77 w pic S9(8). LinkageSection.
77 x pic S9(8).
77 y pic S9(8).
77 q pic S9(8).
77 r pic S9(8). ProcedureDivisionusing x y q r. * x >= 0 and y > 0 * move x to r move 0 to q move y to w performuntil w>x multiply 2 by w end-perform performuntil w = y multiply 2 by q divide 2 into w if w<=r then subtract w from r add 1 to q end-if end-perform. End-Program hdivision.
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.