Do question no. 8
Anyone
NO SPAM❌❎❌❎❌
Otherwise 50 question will be reported
If you know then plz give answers fast
Attachments:
Answers
Answered by
2
Explanation:
public class KboatTemperature
{
public static double celsiusToFahrenheit(double celsius) {
double f = (9.0 / 5) * celsius + 32;
return f;
}
public static double fahrenheitToCelsius(double fahrenheit) {
double c = (5.0 / 9) * (fahrenheit - 32);
return c;
}
public static void main(String args[]) {
double r = celsiusToFahrenheit(100.5);
System.out.println("100.5 degree celsius in fahrenheit = " + r);
r = fahrenheitToCelsius(98.6);
System.out.println("98.6 degree fahrenheit in celsius = " + r);
}
}
Similar questions