Assign the value of (1.732) to a variable with the requisite data type
Answers
Answered by
27
double=1.732;
Hope it will help.
For more java queries follow me.
braxtonelmer:
instead double you could also use float friend.
Answered by
12
We can assign the value by using 'float' data type
so the answer is: float a = 1.732
NOTE: there could be any variable in the place of a.
I hope this answer helps you.
Similar questions