Flowchart (ISO 5807)
Source code
C++
int power(int base, int exp) {
if (exp == 0) return 1;
return base * power(base, exp - 1);
}The editor opens with this code — change it and the chart redraws.
- Language
- C++
- Constructs
- recursive power
- Topic
- Recursion
- Formats
- Word, Visio, draw.io, PDF, SVG