identificationdivision. program-id. mult-wirth. * aus Wirth, systematisches Programmieren p. 30 author. "JD". date-written. 11.9.2005. date-compiled. datadivision. working-storagesection.
77 z pic 9(4).
77 u 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 z move x to u. * invariant z + u * y = x * y && u > 0 performuntil u <= 0 add y to z subtract 1 from u end-perform. move z to r. end-program mult-wirth.
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.