Solution in C #include<stdio.h> int main() { int i,j=0,a[6]; for(i=0;i<6;i++) { scanf("%f",&a[i]); if(a[i]>0) { ++j; } } printf("%d valores positivos\n",j); return 0; } ~~~~~~Happy Coding~~~~~~
No comments