PURPOSE OF A VARIABLE

A variable is used to hold a value of same type of which it is defined.

Int sum=110;

Float sum=10.1;

Char sum=’10’;