Converting Celsius to Fahrenheit
using System; using System.Data; using System.Text.RegularExpressions; class Class1{ static void Main(string[] args){ Console.WriteLine(CtoF(0)); Console.WriteLine(CtoF(40)); Console.WriteLine(CtoF(50)); Console.WriteLine(CtoF(-50)); } public static double CtoF(double celsius) { return (((0.9/0.5) * celsius) + 32); } }