#include <iostream>
using namespace std;
//读入一系列数,统计输出正整数个数i和负整数个数j,读入0则输出结束
int main()
{
int i = 0, j = 0,n;
cout << "enter the number(cin 0 to end):";
cin >> n;
while (n != 0)
{
if (n > 0)
i++;
else
j++;
cin >> n;
}
cout <<"正整数个数:" <<i << "负整数个数: " << j;
return 0;
}