It is a variable that can not be changed such as PI.
Numeric constants have the capacity to store numeric value.
there are three types of constants in COBOL 1. numeric literals 2. figurative constants 3. non-numeric literals
hiii
examples: 1, -2, 3.15, 0xabcd
Symbolic constants are constants that the programmer has decided to give a symbolic name (usually one with a meaning to make it easy to remember) so he does not have to retype the numeric value every time he needs it and risk making an error. Many coding standards require ALL constants to be symbolic constants, even if only used once in the program.
A symbolic constant is a constant with a name, numeric constants are unnamed and must be retyped in the code on each usage. Generally use of symbolic constants is preferred as it makes the code self documenting and allows the compiler to catch typing errors in constant usage.
It is a variable that can not be changed such as PI.
first we learn variables constants and basic algebra
No, it is an arithmetic equation. There are no variables involved, only numeric constants and, as a result, most people would not consider it algebraic.
A variable is a quantity which changes its value through out the program or its lifetime. But a constant is a quantity which does not change its value through out its life time. There are 5 basic constants.
With only a numeric keypad - none. You need at least some basic operations or functions such as addition, subtraction, multiplication and division.
There are two main types of constants: 1. Numeric constants (e.g., integers, floats, and hexadecimals) which are fixed values like 10, 3.14, and 0x0F. 2. Symbolic constants (e.g., definitions using #define or const keywords) which are identifiers representing fixed values like #define PI 3.14 or const int MAX_SIZE = 100.