C# Program to Convert Temperature from Celsius to Fahrenheit

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)

    {

        int Celsius, Fahrenheit;

        Console.WriteLine("Enter the Temperature in Celsius(°C) : ");

        Celsius = Convert.ToInt32(Console.ReadLine());

        Fahrenheit = (Celsius * 9) / 5 + 32;

        Console.WriteLine("Temperature in Fahrenheit(°F) is  : " + Fahrenheit);

        Console.ReadKey();

    }

}


Output :

Enter the Temperature in Celsius(°C) :

45

Temperature in Fahrenheit(°F) is  : 113


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

0 टिप्पणियाँ