If I change 9/5.0 to 9/5, like the following below, it will return 105.0 instead of 105.8. Why?
package com.codegym.task.task01.task0130;
/*
Our first converter!
*/
public class Solution {
public static void main(String[] args) {
System.out.println(convertCelsiusToFahrenheit(41));
}
public static double convertCelsiusToFahrenheit(int TC) {
//write your code here
double TF = (TC * 9/5) + 32;
return TF;
}
}