Format
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
This commit is contained in:
12
C/Addierer.c
12
C/Addierer.c
@@ -1,10 +1,12 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main() {
|
||||
int summe = 0;
|
||||
for(int i=0; i<5; i++) {
|
||||
printf("Gib die Zahl ein:")
|
||||
for ( int i = 0; i < 5; i++ ) {
|
||||
printf( "Gib die Zahl ein:" );
|
||||
int zahl;
|
||||
scanf("%d", &zahl);
|
||||
scanf( "%d", &zahl );
|
||||
summe = summe + zahl;
|
||||
}
|
||||
printf("Summe: %d\n", summe);
|
||||
}
|
||||
printf( "Summe: %d\n", summe );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user