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
return ( 9 / 5 ) * celsius + 32;
}
}
so my code should return 105.8 . but somehow i tested and this code wont read part 9/5 so am i doing something wrong bi divining this number or its just a bug>
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
return ( 9 / 5 ) * celsius + 32;
}
}