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

Quelle  printsquares.cob   Sprache: Cobol

 

       Identification Division.
       Program-Id. square.
       Author. "Frank Pillhofer".
      * "aus fpx.de Übungsblatt 8"  
       Data Division.
       Linkage Section.
         77 par1    pic S9(8) comp-2.
         77 par2    pic S9(8) comp-2.
       Procedure Division using par1 par2.
         multiply par1 by par1 giving par2
         move -10 to par1
       End-Program square.

       Identification Division.
       Program-Id. printsquares.
       Author. "Frank Pillhofer".
      * "aus fpx.de Übungsblatt 8"  
       Data Division.
       Working-Storage Section.
         77 a    pic S9(8) comp-2.
         77 f    pic S9(8) comp-2.
       Procedure Division.
         display a " " f "erste zeile"
         move 1 to a
         perform until a>10
           call square using a f
           display a " " f
           add 1 to a
         end-perform
       End-Program printsquares.

Messung
CHZG
1009910099

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

*© Formatika GbR, Deutschland