#include using namespace std; int main() { int suma = 0, temp =-1; while (temp != 0) { cin >> temp; suma = suma + temp; } cout << suma; return 0; }