Run ❯
Get your
own
website
❯
Run Code
Ctrl+Alt+R
Change Orientation
Ctrl+Alt+O
Change Theme
Ctrl+Alt+D
Change Language
Go to Spaces
Ctrl+Alt+P
#include
#include
using namespace std; int main() { int start = 8; int end = 3; try { if (start > end) { throw logic_error("start cannot be larger than end"); } cout << "From " << start << " to " << end; } catch (const logic_error& e) { cout << e.what(); } return 0; }
start cannot be larger than end