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
static double TemperatureConverter(double tempInCelsius)
{
return tempInCelsius * 1.8 + 32;
}
Comments
Leave a comment