home *** CD-ROM | disk | FTP | other *** search
- extern float Durchschnitt(int far * WertZgr, int AnzahlWerte);
- #define ANZAHL_AN_TEST_WERTEN 10
- int TestWerte[ANZAHL_AN_TEST_WERTEN] =
- {
- 1, 2, 3, 4, 5, 6, 7, 8, 9, 10
- };
-
- main()
- {
- printf("Der Durchschnitt lautet: %f\n",
- Durchschnitt(TestWerte, ANZAHL_AN_TEST_WERTEN));
- }
-
- float IntDivide(int Dividend, int Divisor)
- {
- return( (float) Dividend / (float) Divisor );
- }
-