Answers for "Celsius to Fahrenheit c#"

C#
0

Celsius to Fahrenheit c#

private static void CelsiusToFahrenheit(double celsius)
{
    var fahrenheit = Math.Round((celsius * 1.8) + 32, 2);
  	Console.WriteLine($"{fahrenheit}°F");
}

// CelsiusToFahrenheit(0); output 32°F
// CelsiusToFahrenheit(20); output 68°F
// CelsiusToFahrenheit(30); output 86°F
Posted by: Guest on June-25-2020

Code answers related to "Celsius to Fahrenheit c#"

C# Answers by Framework

Browse Popular Code Answers by Language