c语言程序算法定义
In general, an algorithm is a description of a procedure that terminates with a result. For example, the factorial of a number x is x multiplied by x-1 multiplied by x-2 and so on until it is multiplied by 1. The factorial of 6 is 6! = 6 x 5 x 4 x 3 x 2 x 1=720. This is an algorithm that follows a set procedure and terminates in a result.