Quellcode-Bibliothek Ebb-p172-2.cob
Interaktion und PortierbarkeitCobol
identificationdivision. program-id. ep172-2. * aus Ebbinghaus/Flum/Thomas * Math. Logik p. 172 author. Jens. date-written. 6.2.2011. date-compiled. datadivision. linkagesection.
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). proceduredivisionusing a0 a1 r0 r1 r2.
l0. if r0 = 0 thengoto l9. subtract a0 from r0. add a0 to r1. add a0 to r2. goto l0.
l5. subtract a1 from r0. add a1 to r1. add a1 to r2. goto l0.
l9. if r1 = 0 thengoto l16. subtract a0 from r1. add a0 to r0. goto l9.
l13. subtract a1 from r1. add a1 to r0. goto l9.
l16. if r2 = 0 thengoto l23. subtract a0 from r2. add a0 to r0. goto l16.
l20. subtract a1 from r2. add a1 to r0. goto l16. * end of program
l23. display"fertig" end-program ep172-2.
Messung V0.5
¤ 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.0.10Bemerkung:
Wie Sie bei der Firma Beratungs- und Dienstleistungen beauftragen können
¤
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.