|
|
1/* Konversion eines double Wertes
2 von Fahrenheit nach Celsius
3*/
4
5double
6fahrenheitNachCelsius (double fahrenheit)
7{
8 return (fahrenheit - 32.0) * 100.0 / (212.0 - 32.0);
9}
|
|
1/* Finde fuer gegebenen Radius die Flaeche eines Kreises */
2
3#define PI 3.14159
4
5float
6flaecheEinesKreises (float radius)
7{
8 float flaeche;
9
10 return PI * radius * radius;
11}
|
| Letzte Änderung: 29.10.2008 | © Prof. Dr. Uwe Schmidt |