home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD2.mdf
/
c
/
tcpp
/
examples
/
intro7.c
< prev
next >
Wrap
C/C++ Source or Header
|
1990-06-09
|
413b
|
20 lines
/* INTRO7.C - Beispiel aus Kapitel 4 der
Einführung */
#include <stdio.h>
int main()
{
float ergebnis;
ergebnis = 1.0 + 2.0 * 3.0 / 4.0;
printf("%f\n", ergebnis);
ergebnis = 1.0 / 2.0 + 3.0;
printf("%f\n", ergebnis);
ergebnis = (1.0 + 2.0) / 3.0;
printf("%f\n", ergebnis);
ergebnis = (1.0 + 2.0 / 3.0) + 4.0;
printf("%f\n", ergebnis);
return 0;
}