💻 Computer Programming › C++ Playground
💻 C++ Playground — try the code yourself
Pick a lecture example or write your own program, type the input (what cin reads) and press ▶ Run. It is compiled with a real g++ — errors show their line number, otherwise you see the output.
⌨️ Tab = indent · Ctrl + Enter = run
⌨️ Input — what cin reads
The output appears here…
Not working? The code is copied — try it on OnlineGDB ↗ ·
Programiz ↗
💡 Tips
- A full program needs
#include <iostream>,using namespace std;andint main(). - If the program uses
cin, type the values in the Input box before Run (space or new line between values). - On an error: look at the line number, fix it and press Run again.