#include<iostream.h>
void main()
{
int ji=0,ou=0,shu,k=20;
cout<<"put into number, if it is Negative ———end but dont more 20 time :"<<endl;
do{
cin>>shu;
if(shu>0)
{
if(shu%2==1)
ji+=shu;
else
ou+=shu;
}
else break;
k--;
}while(k>0);
cout<<"奇数之和是:"<<ji<<endl<<"偶数之和是:"<<ou<<endl;
}