Let's test your knowledge. Click the correct answer from the options.
What is the correct way to declare and initialize a variable of type double
named temperature
with the value 98.6
?
Click the option that best answers the question.
- double temperature = 98.6
- temperature = 98.6;
- int temperature = 98.6;
- var temperature = 98.6;