EXAMPLE OF AN ALGORITHM
An algorithm is a description or statement of a sequence of activities that constitute a process of getting the desired outputs from the given inputs.
Later we consider in detail the characteristics features of an algorithm. Next, we define a closely related concept of computer program.
Computer Program: An algorithm, when expressed in a notation that can be understood and executed by a computer system is called a computer program or simply a program. We should be clear about the distinction between the terms viz., a process, a program and an algorithm.