An algorithm is a step-by-step procedure to solve a problem.
- Clear and unambiguous
- Finite number of steps
- Produces output from input
Example: steps to find the largest of three numbers.
An algorithm is a step-by-step procedure to solve a problem.
Example: steps to find the largest of three numbers.