Professional Documents
Culture Documents
Bulding Blocks of Algorithms
Bulding Blocks of Algorithms
ALGORITHMS
Submitted by,
Abhisamol.V.M
I.M.SC.Maths(A)
Roll.No:3002
BUILDING BLOCKS OF ALGORITHMS:
a) Statements
b) State
c)Control flow
d) Functions
1) Statements:
A statement is a single action in a computer.
Statements might include some of the following actions:
a) sequence
b) selection
c) iteration
a)Sequence:
All the instructions are executed one after another.
Example:
Algorithms 1.1
Input: ---
Required Output: A display saying “Good Morning”
step 1: Start
step 3: Stop
Algorithm 1.2:
Step 1: Start
Step 3: sum = a + b
Step 5: Stop
Algorithm 1.3:
Step 1: Start
Step 5: Stop.