IdentificationDivision. Program-Id. Victor. * Buch "Introduction to Cybernetics", 1966 * von Viktor Gluschkow * p272 DataDivision. Working-StorageSection. 78 n value100. 77 p pic9(4). 77 i pic9(4). 77 j pic9(4). 77 k pic9(4). 77 s pic9(4). 77 xf pic9(4). 77 xs pic9(4). 77 vs pic9(4). 77 vf pic9(4). 77 yf pic9(4). 77 ys pic9(4). 77 sf pic9(4)V99. 77 ss pic9(4)V99. 77 a pic9. 77 r pic9occurs n. ProcedureDivision. * Formula
L. accept r move0to sf ss move0to s performvarying i from1until i=n if r(xf(i)) andnot r(yf(i)) then add vf(i) to sf end-if if r(xs(i)) andnot r(ys(i)) then add vf(i) to sf end-if end-perform if sf>ss move1to p. if sf<ss move2to p. if sf=ss goto L. display p accept a if a and (p=1) then performvarying j from1until j=n if r(xf(j)) andnot r(yf(j)) then add1to vf(j) end-perform if a and (p=2) then performvarying k from1until k=n if r(xs(k)) andnot r(ys(k)) then add1to vs(k) end-perform goto L. * P=??? End-Program Victor.
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.11 Sekunden
(vorverarbeitet am 2026-06-08)
¤
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.