ordexa/draw

How to draw a flowchart

A flowchart is a way of showing an algorithm — the order of steps that solves a problem — using shapes and arrows. Below you will find what each symbol means, the rules for drawing one, and a fully worked example.

Open the editor →

Why flowcharts are worth drawing

To put your thinking in order before you write any code. When the algorithm is visible on paper or on screen, mistakes are far easier to catch before the program exists: a missing condition or a loop that never ends stands out at a glance.

That is why flowcharts come first when algorithms are taught in computer science classes — they are independent of any programming language. The same flowchart can be written in Python or in C++ in exactly the same way.

The main symbols

Every shape has its own meaning. This is an international convention (ISO 5807), so a flowchart you draw can be read by someone else.

ShapeNameWhat it does
Start / End The entry and exit point of the algorithm. Every flowchart has exactly one start.
Input / Output Read data from the user, or show them a result.
Assignment Compute something and store it in a variable: s = a + b.
Condition A branch into two paths. Two arrows leave it: True and False.
Function A separate subprogram. It gathers a repeated part in one place (recursion lives here too).
Declaration Create a variable and state its type: integer: n.

Rules for drawing

  1. One starting point. A flowchart begins with a “Start” block and finishes with at least one “End”.
  2. Flow runs top to bottom. The usual direction is top to bottom, left to right. Try not to let arrows cross.
  3. Two paths out of a condition. A diamond always has two arrows leaving it, and both are labelled: True / False.
  4. One entry per block. When several paths lead to the same place, join them first and then enter the block.
  5. Loops must end. Something inside the repetition has to change the condition — otherwise the program hangs.

Example: is a number even or odd

The simplest complete algorithm. Read a number from the user, check the remainder after dividing by 2, and print the answer.

Start Enter n n % 2 == 0 ? True False "Even" "Odd" End
An algorithm that tells even numbers from odd ones

The code this flowchart turns into:

n = int(input())
if n % 2 == 0:
    print("Even")
else:
    print("Odd")

Press Code in the editor and the flowchart you drew turns into exactly this, in JavaScript, Python or C++. The Step button runs the algorithm one block at a time — you can watch which value each variable holds along the way.

Common mistakes

Drawing one online

Drawing by hand is slow and hard to correct. On draw.ordexa.uz you click to add blocks and the arrows are drawn for you — everything runs in the browser, with no sign-up and nothing to install. A finished flowchart can be saved as PNG, SVG or JSON, or shared as a link.

A shared diagram lives inside the link itself — it is never sent to the server.

Start drawing a flowchart →