An algorithm is a sequence of rules that guarantees a particular outcome (eg, sorting a list correctly). It can be implemented in any reasonably complete programming language.
A computer program is a sequence of instructions in a particular programming language. It may accomplish something, or nothing. It may terminate, or it may continue until the sun explodes. It is its own lawless thing.
Latest Answers