Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/Delphi/Bille 0.71/__history/     Datei vom 13.11.2012 mit Größe 11 kB image not shown  

Impressum mult-wirth.cob   Sprache: Cobol

 

       identification division.
       program-id. mult-wirth.
      *  aus Wirth, systematisches Programmieren p. 30 
       author. "JD".
       date-written. 11.9.2005.
       date-compiled.
       data division.
       working-storage section.
       77 z pic 9(4).
       77 u pic 9(4).
       linkage section.
       77 x   pic 9(4).
       77 y   pic 9(4).
       77 r   pic 9(4).
       procedure division using x y r.
      * computes x * y
         move 0 to z
         move x to u.
      * invariant z + u * y = x * y  &&  u > 0   
         perform until u <= 0
           add      y to   z
           subtract 1 from u
         end-perform.
         move z to r.
        end-program  mult-wirth.

Messung
CHZG
8910010096

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

*© Formatika GbR, Deutschland