Bu yazıda Fahrenheit’i Celsius’a Dönüştürmek için bir C # programı yazacağız.
C# Kodu:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
class Program { static void Main(string[] args) { double san; Console.Write("Fahrenheit derecesi girin : "); double fah = Convert.ToDouble(Console.ReadLine()); san = (fah - 32) * 5 / 9; Console.WriteLine("Santigrat derecesi:" + san); Console.ReadLine(); } } |
Çıktı:
Yorum Yap