Learn BEFUNGE with Real Code Examples
Updated Nov 25, 2025
Code Sample Descriptions
1
Hello World in Befunge
>25*"!dlroW ,olleH":v
v:,_@
> ^
A classic 'Hello, World!' in Befunge demonstrating 2D control flow.
8
Befunge Subtract Two Numbers
8 3 - .
Subtracts second number from first and prints it.
9
Befunge Clear Stack Example
9 8 7 6 5 4 3 2 1
$ $ $ $ $ $ $ $ @
Clears the stack and halts execution.
10
Befunge Hello Befunge
>25*"!egnufeB ,olleH":v
v:,_@
> ^
Prints 'Hello Befunge' demonstrating 2D control flow.