Celsius to Fahrenheit

Celsius to Fahrenheit conversion

Celsius to Fahrenheit c#

There are two main temperature scales, The Fahrenheit Scale and the Celsius Scale. In order to convert Celsius to Fahrenheit, simply you can Multiply the Celsius temperature by 9 and Divide the answer by 5 then Add 32 .

For Ex:
Temperature in degrees Celsius is 10

Step 1 : 10 X 9 = 90 (Multiply the Celsius temperature by 9)

Step 2 : 90/5 = 18 (Divide the answer by 5)

Step 3 : 18 + 32 = 50 (Add 32 with above result)

Result is 50

C# Implimentation
using System;
using System.Windows.Forms;
namespace WindowsFormsApplication1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        private void button1_Click(object sender, EventArgs e)
        {
            Double  Celsius = 10;
            Double Fahrenheit = ((Celsius * 9) / 5) + 32;
            MessageBox.Show(Fahrenheit.ToString ());
        }
    }
}
VB.Net Implimentation
Public Class Form1
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim Celsius As Double
        Dim Fahrenheit As Double
        Celsius = 10
        Fahrenheit = ((Celsius * 9) / 5) + 32
        MsgBox(Fahrenheit)
    End Sub
End Class


NEXT.....How to zip files