0% found this document useful (0 votes)
96 views5 pages

By Nirvan Gyan Rondell Hunte Christian Hernandez Navin Dookeram Vinash Deyalsingh

A variable is a user-defined name that is mapped to a data type and used to store and work with data in a program. Variables must be defined with a data type, such as integer, real, char, or string, in the VAR section before they can be used. An example program defines variables for a person's name as a string and desired number as an integer, then inputs and outputs those values.

Uploaded by

Darion KP
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
96 views5 pages

By Nirvan Gyan Rondell Hunte Christian Hernandez Navin Dookeram Vinash Deyalsingh

A variable is a user-defined name that is mapped to a data type and used to store and work with data in a program. Variables must be defined with a data type, such as integer, real, char, or string, in the VAR section before they can be used. An example program defines variables for a person's name as a string and desired number as an integer, then inputs and outputs those values.

Uploaded by

Darion KP
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 5

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.

You might also like