Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace P05_Temperature_Conversion
- {
- class Program
- {
- static void Main(string[] args)
- {
- double farenheit = double.Parse(Console.ReadLine());
- double celsius = FarenheitToCelsius(farenheit);
- Console.WriteLine("{0:F2}",celsius);
- }
- static double FarenheitToCelsius(double farenheit)
- {
- return (farenheit - 32) * 5 / 9;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment