In computer science, a variable is a value in a program that can change. It does not have to be a number. In fact, it can be a string (text value), a date, an amount of money, an object such as a picture, or simply (which means it has no content). The value that is stored in a variable can change the behavior of a program when it is run. Because of this, variables are commonly used to store input and output values.