Web C++ Playground

Type simple C++ (with iostream) → it transpiles to JavaScript and runs in your browser.

Supported subset: #include <iostream>, using namespace std;, int main(),
cout << ...;, endl, basic variables, if, for, while.