Variables:- Variable refers to a storage area whose contents can vary during processing. All the variables are created in the memory of the computer. The data store can change during the execution of the programs. The variables name have the following properties:- i) Any variables name may be up to 40 character long ii) Can’t contain characters other than letter, number and types of declaration character ($, %, #, & and ?) iii) Variable name must began with a letter (A-Z a-z (i.e. lowercase or uppercase letter).) iv) Can’t be reserved word like INPUT, v) Variable name represent either numeric values or strings. vi) Can’t began with “FN” unless it is a function call. Types of Variable a) Numeric Variable b) String Variable a) Numeric variable:- Numeric Variables can be any single letter of alphabetic followed by one of the numerals. Example:- A=12 pi=3.14 c=79.89 b) String Variable:- String Variables had the string of character or alp...
Comments
Post a Comment