FirstHack Learn
Log in Sign up free

Online compiler

Write code, press Run. Nothing to install, and no account needed.

Ctrl + Enter to run
— · 1 lines Ready

Input stdin

Output

Press Run to see the output.

Your code runs in an isolated sandbox with its own CPU and memory limits — never on this site’s own server — and nothing you write is stored or shown to anybody else.

Reads input properly

Type into the input box and your program receives it on stdin — input(), scanf, cin and Scanner all work as they would on your own machine.

Keeps your work

Whatever you write is saved in your own browser, per language, so closing the tab by accident does not lose it.

Then go practise

When you want a target instead of a blank page, the practice problems check your answer automatically.