identificationdivision. program-id. fileconvto. * aus Wirth, systematisches Programmieren p. 100 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 c pic x. working-storagesection.
78 n pic 9(4) value 100.
77 u pic 9(4).
77 i pic 9(4).
77 a pic 9(4) occurs n.
77 x pic 9(4)V9(4).
77 num pic 9(4)V9(4).
77 f-status pic S9(4) comp. linkagesection.
77 e pic 9(4)V9(4). proceduredivisionusing e. * 0 <= e < 10**n move 0 to i move e to x performuntil x = 0 * a1*10**0+ ... +ai*10*+(i-1)+10**i=e divide x by 10 giving u add 1 to i compute a(i) = x - 10*u move u to x end-perform. openoutput f performuntil i = 0 compute c = function rep(a(i)) write f-record subtract 1 from i end-perform. close f end-program fileconvto.
Messung V0.5
¤ Dauer der Verarbeitung: 0.1 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.