Flowchart: odd or even

Read an integer n. If the remainder of n divided by 2 is 0, print even. Otherwise print odd.

Steps

  1. Start, then read an integer n.
  2. Decide whether the remainder of n divided by 2 is 0.
  3. If it is 0, print even. If not, print odd.
  4. Finish 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