Hi,
I am trying to figure out this code. How I make it return the result ? I did try print out put to check the result is 105.8 but requirement should not display anything. I think I did convert right but still wrong. Any opinion ?
Thanks,
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
int f = 0;
int c = 41;
double fahrenheit = ((9/5.0)*41+32);
return 0;
}
}