correct syntax for declaring and assigning decimal number 3.5 to a variable
Answers
Answered by
0
Answer:
double num=3.5;
Explanation:
The above solution is an example for java. In this what I'v did is that, I have used the data type int because 3.5 is a decimal number and stored it in a variable called num.
Similar questions