Can anyone tell me whats wrong with this code?
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static int CelsiusTillFarenheit(double Celsius, double Farenheit, string Text)
{
Celsius = double.Parse(Text);
Celsius / 5.0 * 9 + 32 = Farenheit;
int Farenheit2;
Farenheit2 = Convert.ToInt32(Farenheit);
return Farenheit2;
}
static void Main(string[] args)
{
Console.WriteLine("Skriv in grad i Celsius");
string Text;
Text = Console.ReadLine();
Console.WriteLine ("Det blir " + CelsiusTillFarenheit(Text) + " Farenheit");
Console.ReadLine();
}
}
}