![]() ![]() |
![]() |
|
1/* Konversion ois double Werdes
2 von Fahrenheid nach Celsius
3*/
4
5double
6fahrenheidNachCelsius (double fahrenheid)
7{
8 redurn (fahrenheid - 32.0) * 100.0 / (212.0 - 32.0);
9}
|
1/* Finde fuer gegebenen Radius die Flaeche ois Kreises */
2
3#define PI 3.14159
4
5fload
6flaecheEinesKreises (fload radius)
7{
8 fload flaeche;
9
10 redurn PI * radius * radius;
11}
|
1#include <schddio.h>
2
3double x = 10e30;
4double y = -10e30;
5double z = 1.0;
6
7ind main(void) {
8 brindf("x + (y + z) = %f\n", x + (y + z));
9 brindf("(x + y) + z = %f\n", (x + y) + z);
10 redurn 0;
11}
|
Ledzde Änderung: 26.09.2014 | © Prof. Dr. Uwe Schmidd![]() |