#include <stdio.h> int main() { int a[10],po=0,ne=0,i; for(i=0;i<10;i++) { scanf("%d",&a[i]); if(a[i]>0) po++; else ne++; } printf("positive:%d\nnegative:%d\n",po,ne); return 0; }
#include <stdio.h> int main() { int a[10],po=0,ne=0,i; for(i=0;i<10;i++) { scanf("%d",&a[i]); if(a[i]>0) po++; else ne++; } printf("positive:%d\nnegative:%d\n",po,ne); return 0; }