Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/Cobol/verschiedene-Autoren/Key-Projekt/   (Columbo Version 0.7©)  Datei vom 11.7.2008 mit Größe 850 B image not shown  

Quelle  Indu3-p469.cob   Sprache: Cobol

 
       Identification Division.
       Program-Id. Indu3.
      * Buch "Verification of Object Oriented Software", 2007
      * Proving by Induction, p469
      * von Angela Wallenberg
       Data Division.
       Working-Storage Section.
         77 a           pic 9(4).
         77 b           pic 9(4).
       Linkage Section.
         77 al           pic 9(4).
         77 bl           pic 9(4).
         77 zl           pic 9(4).
         77 z           pic 9(4).
       Procedure Division using al bl zl returning z.
      * socalled Russian Multiplication
        move al to a
        move bl to b
        move zl to z
        perform until a notzero
          if function mod(a,2) not = zero then add b to z end-if
          divide 2 into a
          multiply 2 by b
        end-perform.
       End-Program Indu3.

100%


¤ Dauer der Verarbeitung: 0.17 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.