Flowchart (ISO 5807)
Source code
Java
class Sign {
static int sign(int n) {
if (n > 0) return 1;
else if (n < 0) return -1;
else return 0;
}
}The editor opens with this code — change it and the chart redraws.
- Language
- Java
- Constructs
- if / else if / else
- Topic
- Branching
- Formats
- Word, Visio, draw.io, PDF, SVG