I thought I'd make it easy for people to look at how C# code works. It's overly commented, for people who is not familiar to programming or C# to know what is actually going on:
Suggestions to clean up my code wouldn't be bad either 
Code:
using System;
using System.Collections.Generic;
using System.Text;
//
// Name: Sebastian 'gonX' Jensen
// Date: 4. Nov 09
// Program: A simple Fahrenheit from/to Celcius converter
// Known to compile fine in: Microsoft Visual Express C# 2008
// Comments: In this program I've used simple commands which should be fairly straightforward to understand.
// Please notice that I've moved Main() to the bottom of the document so that it does not complain
// that it's missing some functions that I'm calling from Main(). Yes, I could have assigned them
// earlier in the program, but this is less confusing to look at.
// Please throw me a PM on Overclock.net if you do not understand parts of my code - my username is gonX.
//
namespace switcheslawl
{
class Program
{
// Here's an example of how Main() is not the first variable in the program.
static void toFahrenheit()
{
// Let's assign the variables we need. We use double so that we don't get unnecessary rounding.
string temporary;
double input;
double temperature;
// Clear it so that it doesn't look messy.
Console.Clear();
// Here I'll be telling the user to input his temperature in degrees celcius.
// Please notice that I am not using Console.WriteLine(), but instead Console.Write()
// I'm using a temporary variable as calculating with a string is troublesome,
// it is parsed to a double throughout the code though.
// This is what makes C# different from C++ - in C++ I would not have needed to parse it.
Console.Write("Please enter the temperature in °C: ");
temporary = Console.ReadLine();
input = double.Parse(temporary);
temperature = input * 1.8 + 32;
// The :N2 tells the program to only output 2 decimals. They're rounded off, which is not that
// good for people who actively work with numbers, but it'll work for most people.
Console.Write("\
{0 :N2} °C is {1 :N2} °F\
Press a button to continue\
", input, temperature);
Console.ReadKey();
}
static void toCelcius()
{
// All this is the same as in the toFahrenheit() static, except that the formula for calculating is different.
string temporary;
double input;
double temperature;
Console.Clear();
Console.Write("Please enter the temperature in °F: ");
temporary = Console.ReadLine();
input = double.Parse(temporary);
temperature = (input - 32) / 1.8;
Console.Write("\
{0 :N2} °F is {1 :N2} °C\
Press a button to continue\
", input, temperature);
Console.ReadKey();
}
static void Main()
{
// Here I have to assign option to 0, otherwise it'd complain about option not being assigned
string option = "0";
// I can type "stop" to stop the program.
while (option != "stop")
{
Console.Clear();
Console.WriteLine("What do you want to calculate to?\
\
F. To Fahrenheit\
C. To Celcius\
stop to stop.");
option = Console.ReadLine();
// Most people should be acquainted with switches if they've been programming before. This is fairly similar to C++ syntax.
switch (option.ToLower())
{
case "f":
toFahrenheit();
break;
case "c":
toCelcius();
break;
default:
option = "stop";
break;
}
}
}
}
}









