Program flowchart examples

    Last updated November 30, 2026

    Each example is a flowchart with the standard symbols, plus pseudocode and a C and Python snippet that take the same path. Open in FlowSimp loads the chart so you can edit it. FlowSimp is completely free to use — no sign-up required.

    Paste your own code

    Which program are you drawing?

    • Largest of three numbers

      Compare a with b, then compare the larger of those with c. The chart has three decisions and one result. FlowSimp is completely free to use — no sign-up required.

    • Factorial

      Factorial of n is 1 × 2 × … × n. Factorial of 0 is 1. A negative n is refused before the loop. FlowSimp is completely free to use — no sign-up required.

    • Prime number check

      A prime number is an integer greater than 1 with no divisor other than 1 and itself. The chart tries divisors from 2 up to the square root of n. FlowSimp is completely free to use — no sign-up required.

    • Even or odd

      Divide n by 2. A remainder of 0 means even. Any other remainder means odd. The chart is one decision. FlowSimp is completely free to use — no sign-up required.

    • Sum of N numbers

      Add the integers from 1 through n. If n is less than 1, the sum is 0 and the loop does not run. FlowSimp is completely free to use — no sign-up required.

    • Fibonacci series

      The series used here starts 0, 1, 1, 2, 3. Each later term is the sum of the two before it. The chart writes n terms. FlowSimp is completely free to use — no sign-up required.

    • Leap year

      A year is a leap year when it is divisible by 400, or when it is divisible by 4 and not by 100. The chart asks those questions in that order. FlowSimp is completely free to use — no sign-up required.

    • Swap two numbers

      Store a in temp, copy b into a, then copy temp into b. The chart has no decision, because every input takes the same path. FlowSimp is completely free to use — no sign-up required.

    • Reverse a number

      Take the last digit, append it to a new number, and drop it from n, until n is 0. The chart assumes n is a non-negative integer. FlowSimp is completely free to use — no sign-up required.

    • Simple interest

      Interest is principal × rate × years ÷ 100, where rate is a percent. The amount is principal plus that interest. A negative input is refused. FlowSimp is completely free to use — no sign-up required.

    Ready to draw?

    No signup. Opens instantly in your browser.

    Paste your own code