home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD2.mdf
/
c
/
tcpp
/
examples
/
intro19.c
< prev
next >
Wrap
C/C++ Source or Header
|
1990-06-09
|
315b
|
19 lines
/* 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;
}