How do I assign a variable?

1 Answer
Aug 12, 2015

Answer:

Mostly the data you are interested in are variables.

Explanation:

Normally English alphabet 'x' is used represent a variable. Suppose you interested in collecting data about the age of 5 persons. if their age receptively are 25, 33, 46, 37, 64. After collecting it you present it as follows -

x : 25, 33, 46, 37, 64

You have to interpret it like this.

The age of the 1st person is x. In his case x = 25
The age of the 2nd person is x. In his case x = 33
The age of the 3rd person is x. In his case x = 46
The age of the 4th person is x. In his case x = 37
The age of the 5th person is x. In his case x = 64

Thus 'x' is used to represent the age of a person. The age of each person is 'x'. But the value that 'x' is going take differs with person.

A variable is one which can take a limited number of values in a range. In our case the range is 25 to 64. With in this range 'x' takes only limited values. They are 25, 33, 46, 37, 64.