Question #285901

Implement a C# method TemperatureConverter(double tempInCelsius) which accepts the temperature in Celsius as input parameter and returns the temperature in Fahrenheitas the output value.Note:T(°F)=T(°C)× 1.8 + 32Sample InputExpected OutputtempInCelsius = 3289.6


Expert's answer

static double TemperatureConverter(double tempInCelsius)
{
     return tempInCelsius * 1.8 + 32;
}
LATEST TUTORIALS
APPROVED BY CLIENTS