Course Content
Flowgorithm Features
Flowgorithm Features
0/1
Flowgorithm User Interface
Flowgorithm User Interface
0/3
Flowgorithm Flowchart Shapes
Flowgorithm Flowchart Shapes
0/1
Flowgorithm Data Types
Flowgorithm Data Types
0/1
Flowgorithm Comments
Flowgorithm Comments
0/1
Flowgorithm Numbers
Flowgorithm Numbers
0/1
Flowgorithm Strings
Flowgorithm Strings
0/1
Flowgorithm File Format
Flowgorithm File Format
0/1
Flowgorithm Program Attributes
Flowgorithm Program Attributes
0/1
IPO Chart
IPO Chart ( Input, Process and Output Chart )
0/2
First Flowgorithm Flowchart
First Flowgorithm Flowchart
0/2
Add Two Numbers Flowchart
Add Two Numbers Flowchart
0/2
Flowgorithm Quiz
Flowgorithm Quiz
0/1
Flowgorithm Beginner Exercises
Flowgorithm Beginner Exercises
0/1
Flowgorithm Beginner Course
About Lesson

Flowchart to add two numbers

Let’s design the flowchart to add two numbers and implement the algorithm from lesson 1.

Start Flowgorithm software.

Save the flowchart. ( for example: AddTwoNumber.fprg )

Add two Declare symbols to the flowchart. Create two variables, num1 and num2, of type Real.

Create Real Variables num1

Declare another variable result of type Real to store the sum of the two numbers.

Add two Output symbols to the flowchart to prompt the user to input.

Add two Input symbols to the flowchart to take input for the num1 and num2 variables.

The flowchart should look like below:

Add two number flowchart part1

The first prompt will take the input and store the data in the variable num1.

The second prompt will take the input and store the data in the variable num2.

Add an Assign symbol to the flowchart. This will store the sum of the two numbers.

result <- (num1 + num2 )

Add Two Numbers Assign Result

Add an Output symbol to output the result to the console screen.

 

AddTwoNumbers - Main

 

Save the flowchart.

Run the flowchart and enter two numbers. Check the output of the flowchart.

Flowchart Sample Output

Add Two Numbers Flowchart Output

Â