identification division.
program-id. ep172-2.
* aus Ebbinghaus/Flum/Thomas
* Math. Logik p. 172
author. Jens.
date-written. 6.2.2011.
date-compiled.
data division.
linkage section.
77 a0 pic 9(4).
77 a1 pic 9(4).
77 a2 pic 9(4).
77 r0 pic 9(4).
77 r1 pic 9(4).
77 r2 pic 9(4).
procedure division using a0 a1 r0 r1 r2.
l0.
if r0 = 0 then goto l9.
subtract a0 from r0.
add a0 to r1.
add a0 to r2.
go to l0.
l5.
subtract a1 from r0.
add a1 to r1.
add a1 to r2.
go to l0.
l9.
if r1 = 0 then goto l16.
subtract a0 from r1.
add a0 to r0.
go to l9.
l13.
subtract a1 from r1.
add a1 to r0.
go to l9.
l16.
if r2 = 0 then goto l23.
subtract a0 from r2.
add a0 to r0.
go to l16.
l20.
subtract a1 from r2.
add a1 to r0.
go to l16.
* end of program
l23.
display "fertig"
end-program ep172-2.
¤ Dauer der Verarbeitung: 0.20 Sekunden
(vorverarbeitet)
¤
|
Haftungshinweis
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.
|