#include <stdio.h> int even(int n); int main(void) {
/* 此处添加程序 */
}
回首忆惘然
浏览 124回答 1
1回答
达令说
int main(void){cout<<"Please input numbers, end with 0: "<<endl;int i = 0, sum = 0;cin>>i;while(i > 0){if(i%2 != 0){sum += i;}cin>>i;}cout<<"The sum of the odd numbers is "<<sum<<"."<<endl;return 0;}