Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/Cobol/verschiedene-Autoren/Nissim-Francez/   (Columbo Version 0.7©)  Datei vom 4.1.2008 mit Größe 784 B image not shown  

Quelle  francez-p63.cob   Sprache: Cobol

 
       Identification Division.
       Program-Id. francez-p63.
       Author"Nissim Francez".
      * "aus Program Verification"  
       Data Division.
       Working-Storage Section.
         77 z   pic S9(8).
       Linkage Section.
         77 x   pic S9(8).
         77 y   pic S9(8).
       Procedure Division using x y.
         display "start".
         move 1 to z
        l.
         if y=0 then
           go to le
         else  
           if function mod(y, 2)=0 then
             divide 2 into y
             multiply x by x giving y
           else
             subtract 1 from y
             multiply z by x
           end-if
           go to l
         end-if.
        le.
         display "halt z=" z
       End-Program francez-p63.

91%


¤ Dauer der Verarbeitung: 0.10 Sekunden  (vorverarbeitet)  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

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 ist noch experimentell.