A constant in a program is similar to a constant used in mathematical equations. It is an invariable value. To describe the nature of a constant used in an algorithmic language in greater detail, let us refer to well-known physical and mathematical constants.