Math, asked by mass16062005, 9 months ago

what is variables ? give eggs. ​

Answers

Answered by harshu994
4

Answer:

Here is your answer mate this will help u

.

Step-by-step explanation:

A variable is a named unit of data that may be assigned a value. If the value is modified, the name does not change.

Some variables are mutable, meaning their values can change. Other variables are immutable, meaning their value, once assigned, cannot be deleted or altered.

If a variable's value must conform to a specific data type, it is called a typed variable.

Example of a variable

Below is an example of a variable in the Perlprogramming language.

my $fullname = "Computer Hope";

print "There is hope, $fullname";

In the above example, the variable, named fullname, is declared using the Perl keyword my. In perl, the dollar sign $ indicates that fullname is the name of a variable, but the dollar sign is not part of the variable name.

In the first line of the program, the variable is assigned a value using the assignment operator, =.

The value of fullname is the string Computer Hope, which is enclosed in double-quotes. The double-quotes indicate that the text inside is a string, but are not part of the string data.

When you run the program, the printstatement replaces the variable name, $name, with its string value. Then, it displays the result:

There is hope, Computer Hope

Answered by djkng0
0

Variable definition. A variable is a quantity that may change within the context of a mathematical problem or experiment. Typically, we use a single letter to represent a variable. The letters x, y, and z are common generic symbols used for variables.

IF YOU ARE SATISFIED WITH MY ANSWER THEN PLEASE MARK ME AS BRAINLIST ANSWER

Similar questions