Saturday, October 15, 2016

Celsius To Fahrenheit Converter in C#

A simple console program that I wrote in C# that will ask the user temperature in Celsius and then it will convert to Fahrenheit temperature equivalent. 

Add me at Facebook my address is jakerpomperada@gmail.com and jakerpomperada@yahoo.com. 

My email address are the following jakerpomperada@gmail.com and jakerpomperada@yahoo.com. 

My mobile number here in the Philippines is 09173084360.




Sample Program Output


Program Listing

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


namespace temperature
{
    class temp_solver
    {
        static void Main(string[] args)
        {
            double celsius=0,solve_fahrenheit=0;

            Console.Write("Celsius To Fahrenheit Converter");
            Console.Write("\n\n");
            Console.Write("Enter Temperature in Celsius   : ");
            celsius = Convert.ToDouble(Console.ReadLine());

            solve_fahrenheit = (1.8 * celsius) + 32;

            Console.Write("\n\n");
            Console.Write("===== DISPLAY REPORT =====");
            Console.Write("\n\n");
            Console.WriteLine("The Temperature in Fahrenheit is {0:0.00}.", solve_fahrenheit);
            Console.Write("\n\n");
            Console.Write("End of Program");
            Console.ReadLine();
        }
    }
}






No comments:

Post a Comment