Lecture 1
Lecture 1
Structured Programming
Lecture1 – Algorithms
Algorithm
Algorithm can be defined as: “A sequence of activities to be processed for
getting desired output from a given input”.
While writing algorithms we will use the following symbols for different operations:
• ‘+’ for Addition
• ‘-’ for Subtraction
• ‘*’ for Multiplication
• ‘/’ for Division
• ‘ ’ for assignment.
- For example A X*3 means A will have a value of X*3.
Examples of Algorithm