what is variable and constant
Answers
Answered by
2
The value of a Variable changes.
But the value of a Constant never changes.
Ex
a is variable, the value of a may be 5,4,9,etc.
but 5 is constant and its value will be always 5.
But the value of a Constant never changes.
Ex
a is variable, the value of a may be 5,4,9,etc.
but 5 is constant and its value will be always 5.
Answered by
1
Value of a variable can change
For Example :-
In one question
x = 2
Maybe in other question
x = 5 or other
The value of constant can't change,
For Example :-
5 is always equal to 5 only, 5 will never be equal to 10
For Example :-
In one question
x = 2
Maybe in other question
x = 5 or other
The value of constant can't change,
For Example :-
5 is always equal to 5 only, 5 will never be equal to 10
smrutinayak:
can you explain another example of variable
Similar questions