結果 : algorithm and flowchart with examples