#include <iostream>
int main()
{
int choice;
std::cout << "Enter choice 1 or 2: ";
std::cin >> choice;
if ( choice == 1 )
goto CHOSE1;
else if ( choice == 2 )
goto CHOSE2;
else {
std::cout << "It was a simple enough question!\n";
goto END;
}
CHOSE1:
std::cout << "Chose 1\n";
goto END;
CHOSE2:
std::cout << "Chose 2\n";
goto END;
END:
std::cout << "Here we are at end\n";
}
ICAgICNpbmNsdWRlIDxpb3N0cmVhbT4KCiAgICBpbnQgbWFpbigpCiAgICB7CiAgICAgICAgaW50IGNob2ljZTsKICAgICAgICBzdGQ6OmNvdXQgPDwgIkVudGVyIGNob2ljZSAxIG9yIDI6ICI7CiAgICAgICAgc3RkOjpjaW4gPj4gY2hvaWNlOwogICAgICAgIGlmICggY2hvaWNlID09IDEgKQogICAgICAgICAgICBnb3RvIENIT1NFMTsKICAgICAgICBlbHNlIGlmICggY2hvaWNlID09IDIgKQogICAgICAgICAgICBnb3RvIENIT1NFMjsKICAgICAgICBlbHNlIHsKICAgICAgICAgICAgc3RkOjpjb3V0IDw8ICJJdCB3YXMgYSBzaW1wbGUgZW5vdWdoIHF1ZXN0aW9uIVxuIjsKICAgICAgICAgICAgZ290byBFTkQ7CiAgICAgICAgfQoKICAgIENIT1NFMToKICAgICAgICBzdGQ6OmNvdXQgPDwgIkNob3NlIDFcbiI7CiAgICAgICAgZ290byBFTkQ7CgogICAgQ0hPU0UyOgogICAgICAgIHN0ZDo6Y291dCA8PCAiQ2hvc2UgMlxuIjsKICAgICAgICBnb3RvIEVORDsKCiAgICBFTkQ6CiAgICAgICAgc3RkOjpjb3V0IDw8ICJIZXJlIHdlIGFyZSBhdCBlbmRcbiI7CiAgICB9Cg==