Computer Science, asked by arpitsinghrajkiran20, 5 months ago

define the variables.how will you declare a variable​

Answers

Answered by ameliaearhart423
3

Answer:

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.

To declare (create) a variable, you will specify the type, leave at least one space, then the name for the variable and end the line with a semicolon ( ; ). Java uses the keyword int for integer, double for a floating point number (a double precision number), and boolean for a Boolean value (true or false).

Explanation:

Hope it helps you,)

Similar questions