/* Program to convert Fahrenheit to Celsius */
using System;
class FtoC
{
static void Main()
{
double
f;
double
c;
f = 59.0;
c = 5.0 / 9.0 * (f - 32.0);
Console.Write(f
+ " degrees fahrenheit is ");
Console.WriteLine(c
+ " degree celsius.");
}
}
No comments:
Post a Comment