Answers for "fahrenheit to celsius c#"

C#
0

fahrenheit to celsius c#

private void FahrenheitToCelsius(double fahrenheit)
{
    var celsius = Math.Round((fahrenheit - 32) * 5 / 9, 2);
    Console.WriteLine($"{celsius}°C");
}

// FahrenheitToCelsius(60); output 15.56°C
// FahrenheitToCelsius(77); output 25°C
// FahrenheitToCelsius(89); output 31.67°C
Posted by: Guest on June-25-2020

Code answers related to "fahrenheit to celsius c#"

C# Answers by Framework

Browse Popular Code Answers by Language