Summe der Liste in c
#include <stdio.h>
void main() {
int List[5] = { 1, 2, 3, 4, 5 };
int sum = 0;
for (int i = 0; i < 5; i++) {
sum += List[i];
}
printf("%d", sum);
}
Pleasant Porcupine