Published On Nov 13, 2018
In an algorithm (or computer program), variables are used to store data (or values). Before using a variable in an algorithm, we must define its type which can be integer, real, boolean or string. Although there are other more specific types for variables but only these 4 are used in an algorithm. The identifier of the variable can be composed of alphabetic, numeric and underscore characters and must start with an alphabetic character.
show more