1
已采纳
0
int n,a=0,b=0,c=0,d=0;
cin>>n;
while(n!=0)
{
if(n<0)
{
a+=n;
b++;
}
if(n>0)
{
c+=n;
d++;
}
cin>>n;
}
最后自己cout
0
0
