There really is no hope of making this code even half-way decent without spending the time to rewrite them all properly. Don't want to do any of that
13 lines
249 B
C
Executable File
13 lines
249 B
C
Executable File
#include <stdio.h>
|
|
|
|
int main() {
|
|
int summe = 0;
|
|
for ( int i = 0; i < 5; i++ ) {
|
|
printf( "Gib die Zahl ein:" );
|
|
int zahl;
|
|
scanf( "%d", &zahl );
|
|
summe = summe + zahl;
|
|
}
|
|
printf( "Summe: %d\n", summe );
|
|
}
|