Computer Science, asked by binnytresa8435, 1 year ago

Write Java code (statements) to declare Y as integer variable. Then, assign the value 30 to a variable Y.

Answers

Answered by vikrantdeshwal2
0

It may help to think of possible values and the range which would be valid before you choose a type.

Example: the temperature of a room in C. Room temperature is likely to vary between 15 and 35 C but it can take any value inbetween including non-integers, e.g 20.37 C

Similar questions