Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

C#: Conversion Fahrenheit en Celsius


{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));
        }
    }
}

No comments yet.

Leave a Comment