Flowchart (ISO 5807)
Source code
Python
def total(n):
s = 0
for i in range(1, n + 1):
s += i
return sThe editor opens with this code — change it and the chart redraws.
- Language
- Python
- Constructs
- for + range
- Topic
- Loops
- Formats
- Word, Visio, draw.io, PDF, SVG