why the return in the code is and not 0
double TF = 9 / 5.0 * celsius + 32;
>>>>> "return TF"
Why return is TF and not 0?
Under discussion
Comments (2)
- Popular
- New
- Old
You must be signed in to leave a comment
Mihail
29 May 2019, 07:43useful
They just put a standard answer. "Return TF" because you need the result of TF. "return" is similar to System.out.print. It's not the same, but you understand the idea.
+1
Guadalupe Gagnon
28 May 2019, 20:22useful
because TF is the result of the calculation which is celsius converted to fahrenheit.... which the method is supposed to do.
+1