// goto.cpp example of a got-to statement

#include <iostream>
using namespace std;

int main() {

int x, s = 0;
cout << "Enter positive integers, followed by a -1:\n";
l1: cin >> x;
    if (x == -1) goto l2;
    if (x % 2 == 0) s += x;
    goto l1;
l2: cout << "Sum of even integers: " << s << endl;
    return 0;
}
