#include
using namespace std;
int main()
{
int a,i,sumj=0,sumo=0;
for (i=0;i<10;i++)
{
cin>>a;
if (a%2==0)
sumo=sumo+a;
else
sumj=sumj+a;
}
cout<<"奇数的个数是"<
}
void main()
{int sumj=0,sumo=0,get,i;
printf("please input 10 numbers:\n");
for(i=0;i<10;i++)
{
scanf("%d",&get);
if(get%2==0)
sumo+=get;
else sumj+=get;
}
printf("jishuhe %d,oushuhe %d",sumj,sumo);
getch();
}
-----------------------
十个数字用空格隔开