DEV Community

Cover image for Flowcharts
Zaynul Abedin Miah
Zaynul Abedin Miah

Posted on • Edited on

2

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

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay