Eine aufbereitete Darstellung der Quelle

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


Quelle  Indu4-p475.cob   Sprache: Cobol

 

       Identification Division.
       Program-Id. Indu2.
      * Buch "Verification of Object Oriented Software", 2007
      * Proving by Induction, p475
      * von Angela Wallenberg
       Data Division.
       Working-Storage Section.
         77 i            pic 9(4).
         77 n            pic 9(4).
         77 rl           pic 9(4).
       Linkage Section.
         77 nl           pic 9(4).
         77 kl           pic 9(4).
         77 r            pic 9(4).
       Procedure Division using nl kl returning r.
      * Induction Formula
        compute i=nl-kl 
        move nl to n
        move rl to r
        perform until i>=n
          add 1 to i
          compute r=r+i*i*i
        end-perform.
      * 4*r = nl**2*(nl+1)**2
       End-Program Indu2.

Messung
CHZG
1009910099

¤ Dauer der Verarbeitung: 0.6 Sekunden  ¤

*© 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