WHILE-Übungsklausuraufgabe von Dr.Rothlauf

Programm zur Darstellung der WHILE-Programmierung / Berechnung der Laufzeitkomplexität, bzw. des Aufwandes

Programm zur Aufaddierung von n Zahlen

Programmcode Ergebnis Für verschiedene Anzahl n
// Deklaration der Variablen
// Start WHILE Schleife 1
// Start WHILE Schleife 2
Ergebnisse, bei n=2
a:2
b:2
c:4
r:16
Variable nVariable r
14
212
324
440
560
684
7112
8144
9180
10220
11264
12312
13364
14420