DEV Community

Cover image for Flowcharts
Zaynul Abedin Miah
Zaynul Abedin Miah

Posted on • Edited on

Flowcharts

Flowchart allows you to break down any process into smaller steps and display them in a visually appealing way. It helps beginners to understand without writing complex problem. Programmers often use it as a program-planning tool to solve a problem. It makes use of symbols which are connected among them to indicate the flow of information and processing.
Flowchart Components

Image description
The oval shaped box denotes the start and end of an object.

The parallelogram shaped box denotes terminal which read/print a value.

And the square shaped box denotes process which assigns a certain value.

The diamond shaped box denotes condition. It makes a decision based on a certain condition.

The arrow denotes from where you started and where you ended.

Image description

Example

Question: Draw a flowchart to find the greatest number among the 2 numbers.

Solution:

Algorithm:

  1. Start

  2. Input 2 variables from user

  3. Now check the condition If a > b, goto step 4, else goto step 5.

  4. Print a is greater, goto step 6

  5. Print b is greater

  6. Stop
    after completing the process it gives out the value

Top comments (0)