Understanding operations on Variables
Consider the following situations.
Mathi is 3 years elder than his sister Nila. If we know Nila's age, can we find Mathi’s?
If Nila’s age is ‘n’, you can see that Mathi’s age is always ‘n + 3’. This is the advantage of using variables. We do not need different statements for different values of the age! As we give different values for ‘n’, we get different values for ‘n + 3’. This is clear from the following table.
Patterns using Ice Candy Sticks
Pari and Manimegalai made some patterns with ice candy sticks.
To make one ‘T’, how many ice candy sticks are used by them? (Two sticks)
To make two ‘T’s, how many ice candy sticks are used by them? (Four sticks)
Continuing this, they prepared the following table to find the number of ice candy sticks used by them
From the above table, it is clear that if the number of ‘T’s required by them is ‘k’ then the number of ice candy sticks required by them will be 2 × k = 2k. Here ‘k’ is a variable.