#include <stdio.h>
int main() {
int a[10];
int m=0,n=0;
for(int i=0;i<10;i++)
{
scanf("%d",&a[i]);
}
for(int j=0;j<10;j++)
{
if(a[j]>0)
m++;
if(a[j]<0)
n++;
}
printf("positive:%d\nnegative:%d\n",m,n);//注意输出格式
return 0;
}

京公网安备 11010502036488号