According to the formula Answer is 5.0. Then how can it be 105.8;
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 celsius) {
//write your code here
Solution s = new Solution();
int TF = celsius;
double TC = (TF - 32) * 5/9;
return TC;
}
}