Skip to content

Flowchart gallery

See which flowchart each code produces — loops, recursion, lambdas and more. Open any one fullscreen or edit it in the editor.

examples
177
examples
languages
11
languages
constructs
9
constructs

177 examples

Branching 17

Grade by score
Python if / elif / else
Max of two
C++ if / else
Even / odd
C# if / else
Sign of a number
Java if / else if / else
Ternary operator
C++ ?: → branching
Leap year
Python compound condition
Category by age
JavaScript if / else
Sign of a number
TypeScript if / else if + types
Grade by score
PHP if / elseif / else
Grade by score
Go if / else if / else
Quadratic equation
Pascal discriminant, if / else
Solving a linear equation
Pascal if / else if / else
Quadratic discriminant
C# if / else if / else
Minimum of three
C sequential ifs
Sort three numbers
C swap via if
Grade with match
Rust match with ranges
Sign of a number
Rust if as an expression

Switch / case 11

Day of week
C++ switch + default
match / case
Python structural pattern matching
Letter grade
Java switch over ranges
case .. of
Pascal case in Pascal
switch-expression
C# C# switch
Size by number
TypeScript switch + default
Day of week
Go switch + default

Showing 24 of 177