Development of Algorithm
Development of Algorithm
An algorithm is a finite set of well-defined instructions that solve a problem or perform a computation.
It takes some input, processes it step by step, and produces an output.
Step-by-Step Approach
Problem Statement:
1. Start
2. Input two numbers: A and B
3. Compute the sum: Sum = A + B
4. Output Sum
5. End
Pseudocode
markdown
Copyedit
Algorithm SumTwoNumbers
1. Start
2. Read A, B
3. Sum = A + B
4. Print Sum
5. End
Flowchart
• Start/End (Oval)
• Input/Output (Parallelogram)
• Process (Rectangle)
• Decision (Diamond) (if applicable)