C# Program to convert Celsius into Fahrenheit

In this C# program, we will take the input Celsius from the user and change it to Fahrenheit. 

C# Program to convert Celsius into Fahrenheit Code:

private static void Main(string[] args)
        {
            int celsius, fahrenheit;
            Console.Write("Enter the Temperature in Celsius: ");
            celsius = int.Parse(Console.ReadLine());
            fahrenheit = ((celsius * 9) / 5) + 32;
            Console.WriteLine("Temperature in Fahrenheit is : " + fahrenheit);
            Console.ReadLine();
        }

C# Program to convert Celsius into Fahrenheit Output:

CSharp-program-to-convert-Celsius-into-Fahrenheit

 
Asp.Net Ajax Control Toolkit tutorials.

Give your valuable comments.

Name
Email
Comment
1 + 6 =
 

About Us | Terms of Use | Privacy Policy | Disclaimer | Contact Us Copyright © 2012-2024 CodingFusion
50+ C# Programs for beginners to practice