home *** CD-ROM | disk | FTP | other *** search
- /* INTRO19.C - Beispiel aus Kapitel 4 der
- Einführung */
-
- #include <stdio.h>
-
- int main()
- {
- int zahl = 1, gesamt = 0;
- while (zahl < 11)
- {
- gesamt += zahl;
- zahl++;
- }
- printf("\nDie Summe der Zahlen von 1 bis 10 "
- "ist %d\n", gesamt);
-
- return 0;
- }
-