Eine aufbereitete Darstellung der Quelle

 
     
 
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung


Quelle  pow-fast.cob   Sprache: Cobol

 

       identification division.
       program-id. pow-fast.
      * aus Dirk Hoffmann,
      * Software-Qualität
      * p339, Springer 2008
       author. "JD".
       date-written. 28.1.2009.
       date-compiled.
       data division.
       working-storage section.
        77 k pic 9(4).
        77 p pic 9(16).
        linkage section.
        77 a   pic 9(4).
        77 n   pic 9(4).
        77 y   pic 9(16).
       procedure division using a n returning y.
      * computes r = i to the power of n
         move n to k
         move a to p
         move 1 to y
         perform until k <= 0
           if function mod(k,2)=0 then
             multiply p by p
             divide 2 into k
           else
             multiply p by y
             subtract 1 from k
           end-if
         end-perform.
        end program pow-fast.

Messung
CHZG
9010010096

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

*© Formatika GbR, Deutschland







                                                                                                                                                                                                                                                                                                                                                                                                     

 

Neuigkeiten

Aktuelles
Motto des Tages

Open Source Software


Gedichte
Musik
Bilder

Jenseits des Üblichen

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1,188,835
#Domains=906,747