Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/Cobol/verschiedene-Autoren/AbsInt-Group/   (verschiedene Autoren Version 0.7©)  Datei vom 13.0.2009 mit Größe 672 B image not shown  

SSL divzero.cob   Sprache: Cobol

 

       identification division.
       program-id. divzero.
       author. "JD".
       date-written. 25.10.2004.
       date-compiled.
       data division.
       working-storage section.
       77 k pic 9(4).
       77 i pic 9(4).
       77 j pic 9(4).
       77 d pic 9(4).
       procedure division.
      * computes something
         move 0 to i j.
         accept k.
         perform until i >= k
           add 1 to i
           add 3 to j
         end-perform.
      *  here at i=-19 occurs an error   
         compute d=5/(i - j)
         display d.
        end-program divzero.

Messung
CHZG
839710093

¤ Dauer der Verarbeitung: 0.52 Sekunden  ¤

*© Formatika GbR, Deutschland