# What is a flowchart?

The flow chart is a very important tool by which we can understand the flow of algorithms and program very easily. It is a pictorial representation of step by step solution to a problem. Programmer often uses it as a program planning tool for visually organizing steps necessary to solve a problem. It uses boxes of different shapes that denote the different types of instruction.

The set of rules that define how a particular problem can be solved an infinite number of steps is known as an algorithm. A good algorithm helps us to create a good program.

A Flowchart is a diagram that uses graphic symbols to depict the nature and flow of the steps in a process. Another name for this tool is “flow diagram.”

## Symbols used in Flowcharts

Start / End:-

Process Step:-

Decision:-

Connector:-

Measurement:-

Input / Output:-

Note: To solve a problem in the simplest and better way we use an algorithm and flowchart so first, we will write an algorithm then we will make a flow chart for that problem.

## Flowchart Questions & Answers

1)WRITE AN ALGORITHM AND DRAW A FLOWCHART FOR THE ADDITION OF TWO NUMBERS THAT ARE INPUT BY YOU AND DISPLAY THEIR SUM.

Algorithm:-

``````1.	START
2.	INPUT  A,B
3.	C=A+B
4.	PRINT C
5.	STOP
``````

Flowchart:-

2) WRITE AN ALGORITHM AND DRAW A FLOWCHART TO PRINT NUMBERS FROM 1 TO 100.

Algorithm:-

``````1. START
2. I = 1
3. WHILE I <= 100 REPEAT STEPS 4 AND 5.
OTHERWISE MOVE TO STEP 6.
4. PRINT I
5. I = I + 1
6. STOP
``````

Flowchart:-