#include<stdio.h> int main() { int a,s=0; while(scanf("%d",&a)){ if(a<=0){ break; } if(a%2==1){ s+=a; } } printf("%d",s); return 0; }
觉得有用的话采纳一下哈