C#: Conversion Fahrenheit en Celsius

Author:


{filelink=19655}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Mesexemples
{
    class ConversionFeCel
    {

        static void Main(String[] arg)
        {
            Console.WriteLine("{0} en celsius={1}", 14, FtoC(14) );
            Console.ReadLine();
        }
        public static double FtoC(double fahrenheit)
        {
            return ((0.5 / 0.9) * (fahrenheit - 32));
        }
    }
}

Leave a Reply

Your email address will not be published. Required fields are marked *