Developer Tools
Online C Compiler Beta
Full support for printf() and scanf(). Provide input in the box below
before running.
This compiler is in beta. You may encounter occasional errors or slower
response times. We're actively working on improvements.
C
main.c
GCC Compiler
Code Editor
Output
Ready
Run your code to see output here...
Program Input (stdin)
How to Use scanf()
Type each input value on a new line in the "Program Input" box before clicking Run. Example for the default code:
25 17
Beta Notice
This tool is under active development. All output — including
printf prompts — appears after execution completes, not line by line. Some features
may change.
Tip
For multiple scanf() calls, provide each value on a separate
line in the same order they appear in your code.