rombik.
Open editor
← All examples

GCD (recursion)

Python Recursion

Euclid recursion

Flowchart (ISO 5807)

YesNoStartInput a, bb == 0Return aEndReturn gcd(b, a % b)EndFigure 1 — gcd

Source code

def gcd(a, b):
    if b == 0:
        return a
    return gcd(b, a % b)

Next

  • All flowcharts for Python
  • All example flowcharts
  • How to make a flowchart from code
  • Flowchart to the standard: full guide
  • Flowchart for coursework
  • Nassi-Shneiderman structograms

Code to flowchart by language

PythonJavaScriptTypeScriptCC++C#JavaGoPHPPascal

© 2026 rombik — flowcharts per ISO 5807.

Built by Олексій Одарчук (ishawyha)

Service provided by Nadiia Odarchuk, Individual Entrepreneur (FOP)

How it works Guides Gallery Structograms Telegram bot Editor API
About Offer Privacy
Telegram channel Support