Home/Blog/Algorithms & Data Structures

Arrays and Lists in Structograms: Traversal, Sum, and Maximum

2026-11-306 min read

Initializing From the First Element

Always seed the running maximum with liste[0] and iterate from index 1 to n - 1.

Live Example (DIN 66261)

Rendered directly in DIN 66261 — click to open and edit in the workspace.

findeMax(liste, n)Deklaration und Initialisierung: maxWert als Ganzzahl = liste[0]Zuweisung: maxWert = liste[i]liste[i] > maxWertwahrfalschZähle i von 1 bis n - 1Rückgabe: maxWert

More Articles