Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/COBOL/verschiedene-Autoren/Spillner-Linz/   (Columbo Version 0.7©)  Datei vom 31.0.2014 mit Größe 779 B image not shown  

Quelle  max.cob.bak   Sprache: unbekannt

 
      *------------------------------------------
      * maximum from 3 values
      * Softwaretechnik Trends Band 44 Heft 4
      *------------------------------------------
       Identification Division.
       Program-Id. Max.
       Author. Andreas Spillner/HS-Bremen.
       Data Division.
       Linkage Section.
         77 x           pic 9(4).
         77 y           pic 9(4).
         77 z           pic 9(4).
         77 max         pic 9(4).
       Procedure Division using x, y, z returning max.
      * Beispiel mit Fehler
          move 0 to max
        if x>z then
           move x to max;
        if x>z then
           move x to max;
        if x>z then
           move x to max;
      * max wird zurückgegeben
       End-Program Max.

[ Dauer der Verarbeitung: 0.21 Sekunden  (vorverarbeitet)  ]