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