write a statement to declare a variable is and assign you used to it
Answers
Answered by
2
Answer:
A variable is associated with space in the computer's memory that can hold a value (often a number). Each variable has a name, which you choose, and subsequently use to refer to it.
You must start by declaring the variable, this gives the variable a name and reserves some memory space to store whatever value the variable takes. It also tells the compiler what you intend the variable to represent. This is known as the variable's type. For example a variable which always takes integer values, can be declared as type int in Java. For example the line of code
Similar questions