Variables, Expressions & Statements
Variables
The major purpose of variable is to store a value from one part of program so that it can be used in other part of program. It can be used to store the value of computation that is carried out during the flow of the program. A variable is a name that referes to a value.
Assignment statement
Assignment statement creates a new variable and store a value in it. For example,