By Nirvan Gyan Rondell Hunte Christian Hernandez Navin Dookeram Vinash Deyalsingh
By Nirvan Gyan Rondell Hunte Christian Hernandez Navin Dookeram Vinash Deyalsingh
A variable is a user defined name of a storage location used to hold data in a program. A variable is mapped onto a datatype before it can work. In a program, there is a section in which variables are defined by data types called the VAR section.
-In order for a variable to work, it must be defined by a data type before it is used in a program: <variable name> : <data type> - The variable name would be a user defined word or character. - The : means: is defined by. - The data type is system defined as an integer, real, char, or string.
Example: Create a program to accept a persons name, and a number of their desire. VAR name : string num : integer Begin Output Enter persons name: Input name Output Enter desired number: Output num End.