identificationdivision. program-id. fileint. * aus Wirth, systematisches Programmieren p. 71 author. "JD". date-written. 25.10.2004. date-compiled. environmentdivision. input-outputsection. file-control. select f assignto file-f status f-status. datadivision. filesection. fd f recordcontains 120 characters datarecordis f-record labelrecordisomitted.
01 f-record.
05 i pic x(8). working-storagesection.
78 n pic 9(4) value 100.
77 a pic 9(4).
77 b pic 9(4).
77 f-status pic S9(4) comp. proceduredivision. * computes x / y move 1 to a b. openoutput f performuntil a >= n * invariant a = (b+1)**2 / 4 write f-record from a add 2 to b add b to a end-perform. close f end-program fileint.
Messung V0.5
¤ Dauer der Verarbeitung: 0.10 Sekunden
(vorverarbeitet)
¤
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.