public static double convertCelsiusToFahrenheit(int celsius) {
double Fahrenheit = 9/5 * celsius + 32;
//write your code here
package com.codegym.task.task01.task0130;
/*
Our first converter!
The convertCelsiusToFahrenheit(int celsius) method accepts a value in degrees Celsius. The method should convert the temperature and return the value in degrees Fahrenheit.
The Celsius temperature (TC) and the Fahrenheit temperature (TF) are related by the following relationship:
TC = (TF - 32) * 5/9.
Consider this example:
A value of 41 is passed to the convertCelsiusToFahrenheit method.
Example output:
105.8
*/
public class Solution {
public static void main(String[] args) {
System.out.println(convertCelsiusToFahrenheit(41));
}
public static double convertCelsiusToFahrenheit(int celsius) {
double Fahrenheit = 9/5 * celsius + 32;
//write your code here
return 0;
}
}