accept
4829 / 3250 / 165
Регистрация: 10.12.2008
Сообщений: 10,569
|
24.08.2009, 03:36
|
|
C | 1
2
3
4
5
6
7
8
9
10
11
| /* CelsiusToFahrenheit: converts celsius to fahrenheit */
double CelsiusToFahrenheit(double cels)
{
return 1.8*cels + 32;
}
/* FahrenheitToCelsius: converts fahrenheit to celsius */
double FahrenheitToCelsius(double fahr)
{
return (fahr-32)/9.0 * 5;
} |
|
это так, чисто, формулы
1
|