You are viewing a single comment's thread. Return to all comments →
Same solution ;)
int main() { int i=0; int total=0; while (cin >> i){ total += i; } cout << total << endl; return 0; }
Seems like cookies are disabled on this browser, please enable them to open this website
Input and Output
You are viewing a single comment's thread. Return to all comments →
Same solution ;)