public static void Main()
Console.WriteLine("By: John Vincent V. Ramos");
Console.WriteLine("What is the unit of the given temperature?");
Console.WriteLine("C. Celsius");
Console.WriteLine("F. Fahrenheit");
Console.WriteLine("Type C for Celsius or F for Fahrenheit:");
char ch = char.Parse(Console.ReadLine().ToUpper());
Console.Write("Input the temperature value of Fahrenheit:");
double F = double.Parse(Console.ReadLine());
double celsius = ((double)5/9) * (F - 32);
Console.WriteLine("Answer: {0}°F (Fahrenheit) is equal to {1}°C (Celsius)", F, celsius);
Console.Write("Input the temperature value of Celcius:");
double C = double.Parse(Console.ReadLine());
double fahren = ((double)9/5) * C + 32;
Console.Write("Answer: {0}°C (Celsius) is equal to {1}°F (Fahrenheit)", C, fahren);
{ Console.WriteLine("\nINVALID INPUT!\n");}