C# Program to Convert Temperature from Fahrenheit to Celsius

using Newtonsoft.Json.Linq;
using System;
using System.Diagnostics;
using System.Text.RegularExpressions;
using System.Xml;
using System.Xml.Linq;
public class Program
{
    
    public static void Main(String[] args)
    {
        double Celsius;
        Console.Write("Enter Fahrenheit Temperature : ");
        double Fahrenheit = Convert.ToDouble(Console.ReadLine());
        Celsius = (Fahrenheit - 32) * 5 / 9;
        Console.WriteLine("The Celsius Temperature is : " + Celsius);
        Console.ReadKey();
    }
}
Output:-
Enter Fahrenheit Temperature : 98
The Celsius Temperature is : 36.6666666666667

एक टिप्पणी भेजें

0 टिप्पणियाँ