identificationdivision. program-id. div. * aus Wirth, systematisches Programmieren p. 31 author. "JD". date-written. 25.10.2004. date-compiled. datadivision. working-storagesection.
77 q pic 9(4). linkagesection.
77 x pic 9(4).
77 y pic 9(4).
77 r pic 9(4). proceduredivisionusing x y r. * computes x / y move 0 to r move x to q. * invariant q * y + r = x && r >= 0 performuntil q < y subtract y from q add 1 to r end-perform. * r = x div y end-program div.
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.