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 recordcontains120 characters datarecordis f-record labelrecordisomitted. 01 f-record. 05 c pic x. working-storagesection. 78 n pic9(4) value100. 77 u pic9(4). 77 i pic9(4). 77 a pic9(4) occurs n. 77 x pic9(4)V9(4). 77 num pic9(4)V9(4). 77 f-status pic S9(4) comp. linkagesection. 77 e pic9(4)V9(4). proceduredivisionusing e. * 0 <= e < 10**n move0to i move e to x performuntil x = 0 * a1*10**0+ ... +ai*10*+(i-1)+10**i=e divide x by10giving u add1to 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 subtract1from i end-perform. close f end-program fileconvto.
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.11 Sekunden
(vorverarbeitet am 2026-06-09)
¤
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.