Flow chart

The flow control keywords are SET, LOOP, (WHILE, UNTIL), REP, and POST. The following flow chart shows a formula or an algorithm to calculate the dividend given a number of shares, the face value, and the dividend percentage. The start and end are the Entry and Exit symbols. The input number of shares, share face value, and dividend percentage use the Input symbol. The compute dividend and output dividend use the Task symbol and Output symbol respectively:

In the next section, we'll take a look at pseudo code, representation of algorithms.

Get Learn Data Structures and Algorithms with Golang now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.