ATM cash withdrawal flowchart
The ATM flowchart is a standard exam question because it combines input, a retry loop, a balance check and output. Notice the three-attempt limit on the PIN.
How to write steps
- One step per line. Lines connect top to bottom.
- End a line with
?to make a decision. Indent the answers under it:yes: Ship it,no: Refund. - Indent more lines under an answer to continue that branch.
-> Step namejumps back to an earlier step (a loop).no -> Step nameworks inside a decision.Start,End,DoneorStopbecome rounded start/end shapes.- Shape tags:
[input][output][doc][db][sub][manual][delay]. lane: Saleson its own line puts the next steps in a swimlane.- Or paste Mermaid code starting with
flowchart TD. It’s detected automatically.
Mermaid code for this chart
flowchart TD
n1(["Start"])
n2[/"Insert card"/]
n3[/"Enter PIN"/]
n4{"PIN correct?"}
n5{"Third wrong attempt?"}
n6["Keep the card"]
n7(["End"])
n8[/"Enter amount"/]
n9{"Enough balance?"}
n10[/"Show insufficient funds"/]
n11[("Debit the account")]
n12[/"Dispense cash and receipt"/]
n1 --> n2
n2 --> n3
n3 --> n4
n4 -->|"no"| n5
n5 -->|"yes"| n6
n6 --> n7
n4 -->|"yes"| n8
n8 --> n9
n9 -->|"no"| n10
n10 --> n7
n9 -->|"yes"| n11
n11 --> n12
n12 --> n7
n5 -->|"no"| n3The steps as text
This is the source of the chart above, so the template is readable even without the diagram.
Start
[input] Insert card
[input] Enter PIN
PIN correct?
no: Third wrong attempt?
yes: Keep the card
End
no: -> Enter PIN
yes: [input] Enter amount
Enough balance?
no: [output] Show insufficient funds
End
yes: [db] Debit the account
[output] Dispense cash and receipt
EndMore flowchart examples
Algorithm: largest of three numbersThe textbook algorithm flowchart: read A, B, C and print the largest.Algorithm: sum of 1 to N (loop)A counting loop: add the numbers from 1 to N and print the total.Login processUsername and password check with a retry limit and account lockout.Yes/no: should I answer this email now?A light yes/no flowchart for triaging email in under a minute.
Questions people ask
How do I edit this atm cash withdrawal flowchart?
Change the text in the editor. Each line is a step, lines ending in “?” are decisions, and indented lines are the answers. The chart redraws as you type and is saved in your browser.
Can I download it?
Yes: PNG for documents and slides, SVG for sharp printing, or Mermaid code for GitHub, Notion and Obsidian.