Illustrate an example of algorithm
Consider that an algorithm is a sequence of steps, not a program. You might use the same algorithm in different programs, or express same algorithm in different languages, since an algorithm is an entity which is abstracted from implementation details. Part of the point of this course is to introduce you to algorithms which you can use no matter what language you program in. We would write programs in a particular language however we are really studying the algorithms, not their implementations.