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

Quelle  Kowalk-p73.cbl   Sprache: Cobol

 

       identification division.
       program-id. kw73-1.
      * aus Kowalk - Korrekte Software
      * p. 73
       author. Jens.
       date-written. 5.1.2009.
       date-compiled.
       data division.
       working-storage section.
       77 hilf      pic 9(4).
       linkage section.
       77 qua    pic 9(4).
       77 n      pic 9(4).
       procedure division using n returning qua.
          move 0 to qua
          move 1 to hilf
          perform n times
           add hilf to qua
           add 2 to hilf
          end-perform
        end-program kw73-1.
        
       identification division.
       program-id. kw73-2.
      * aus Kowalk - Korrekte Software
      * p. 73
       author. Jens.
       date-written. 5.1.2009.
       date-compiled.
       data division.
       working-storage section.
       77 hilf      pic 9(4).
       linkage section.
       77 qua    pic 9(4).
       77 n      pic 9(4).
       procedure division using n returning qua.
          move 0 to qua
          perform varying hilf from 1 by 2
           until hilf=n+n-1
           add hilf to qua
          end-perform
        end-program kw73-2.

Messung
CHZG
1009910099

¤ Dauer der Verarbeitung: 0.0 Sekunden  (vorverarbeitet am  2026-11-25) ¤

*© Formatika GbR, Deutschland