We are providing online training of realtime Live project on Asp.Net MVC with Angular and Web API. For more information click here. If you have any query then drop the messase in CONTACT FORM

Saturday, September 19, 2015

Convert Celsius to Fahrenheit in C#

class Program
        {
            static void Main(string[] args)
            {
                int celsius, farenheit;

                Console.WriteLine("Enter the Temperature in Celsius : ");
                celsius = int.Parse(Console.ReadLine());
                farenheit = (celsius * 9) / 5 + 32;
                Console.WriteLine("Temperature in Farenheit is :" + farenheit);
                Console.ReadLine();
             }


        }
Output:

No comments: