← All examples Ternary operator C++ Branching ?: → branching Flowchart (ISO 5807) Flowchart Structogram YesNoStartInput xx < 0Return -xEndReturn xEndFigure 1 — absVal Fit width 100% Fullscreen Source code int absVal(int x) { return x < 0 ? -x : x; } Open in the editor Next All flowcharts for C++ All example flowcharts How to make a flowchart from code Flowchart to the standard: full guide Flowchart for coursework Nassi-Shneiderman structograms