Document 2
Document 2
Characteristics of Algorithm
⦁ Each and every instruction must be precise and unambiguous
⦁ Each step may have explanatory note provided with in square bracket followed by
operation.
⦁ Completion of algorithm must be specified as end or stop.
Ex 1: Write an algorithm to add two numbers
Algorithm: Addition of two numbers Input: Two number a and b
Output: Sum of two numbers
Step 1: Start
Step 2: [input two number] Read a and b
Step 3: Sum = a + b [compute its addition]
Step 4: print Sum
Step 5: Stop
FLOWCHART: