What are Variable and Constant? Also Give examples.
Answers
Step-by-step explanation:
A constant is a value that cannot be altered by the program during normal execution, i.e., the value is constant. This is contrasted with a variable, which is an identifier with a value that can be changed during normal execution, i.e., the value is variable.
HAVE A GREAT TIME AHEAD ☺️
Answer:
Definition of Constant and Variables
In an algebraic expression, x+y = 8, 8 is a constant value, and it cannot be changed. ... In an algebraic expression, x+y = 8, x and y are the variables and can be changed.
In Algebra, a constant is a number on its own, or sometimes a letter such as a, b or c to stand for a fixed number. Example: in "x + 5 = 9", 5 and 9 are constants.
In mathematics, a variable is a symbol or letter, such as "x" or "y," that represents a value. ... For example, a variable of the string data type may contain a value of "sample text" while a variable of the integer data type may contain a value of "11".
HOPE IT'S HELPFUL TO YOU