Home/Blog/Guide & Examples

Sum, Average & Min/Max of an Array in a Structogram

2026-11-225 min read

Divide After the Loop Finishes

Accumulate the total inside the loop and perform the division once after the loop completes.

Live Example (DIN 66261)

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

durchschnitt(werte)summe = 0summe = summe + werte[i]i = 0 bis laenge(werte) - 1mittel = summe / laenge(werte)Rückgabe: mittel

More Articles