#include <stdio.h>
int main() {
int numbers[8];
int sum;
for (int i=0;i<8;i++){
scanf("%d", &numbers[i]);
if (numbers[i] <= 7){
sum += numbers[i];
}
}
printf("%d", sum);
}
To embed this project on your website, copy the following code and paste it into your website's HTML: