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