The num1 and num2 variables have the int data type and contain the numbers 13 and 5,

Question:

The num1 and num2 variables have the int data type and contain the numbers 13 and 5, respectively. The answer variable has the double data type. Which of the following statements will require an explicit type conversion to evaluate correctly? 

a. answer = num1 / 4.0; 

b. answer = num1 + num1 / num2;

c. answer = num1 - num2; 

d. None of the above

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: