Flowchart (ISO 5807)
Source code
C++
int countDigits(int n) {
int c = 0;
do {
c++;
n /= 10;
} while (n > 0);
return c;
}The editor opens with this code — change it and the chart redraws.
- Language
- C++
- Constructs
- post-condition loop
- Topic
- Loops
- Formats
- Word, Visio, draw.io, PDF, SVG