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