Flowchart: find the larger of two numbers

Read two numbers a and b, then print the larger one. One decision symbol splits the flow into two paths.

Steps

  1. Start, then read two numbers a and b.
  2. Decide whether a is greater than b.
  3. If it is, print a. If not, print b.
  4. Both paths meet at the end symbol.

Good to know

Drawing happens in this browser only. Your text is never sent to a server. Symbol rules differ a little between textbooks, so check them against your course before you hand in.

See the symbol rules

More examples