Flowchart (ISO 5807)
Source code
C++
long fact(int n) {
long r = 1;
for (int i = 2; i <= n; i++) {
r *= i;
}
return r;
}The editor opens with this code — change it and the chart redraws.
- Language
- C++
- Constructs
- for with accumulation
- Topic
- Loops
- Formats
- Word, Visio, draw.io, PDF, SVG