const int N = 5;
int arr [N] = { 2, 3, 5, 4, 8 };
int sum = 0;
void setup() {
Serial.begin(115200);
for (int n = 0; n < N; n++) {
Serial.println (arr [n]);
sum = sum + arr [n];
}
Serial.println (sum);
}
void loop() {
}
const int N = 5;
int arr [N] = { 2, 3, 5, 4, 8 };
int sum = 0;
void setup() {
Serial.begin(115200);
for (int n = 0; n < N; n++) {
Serial.println (arr [n]);
sum = sum + arr [n];
}
Serial.println (sum);
}
void loop() {
}