1. Home
  2. /
  3. Befunge
  4. /
  5. Subtract Two Numbers

Subtract Two Numbers - Befunge Typing CST Test

Loading…

Subtract Two Numbers — Befunge Code

Subtracts second number from first and prints it.

8 3 - .

Befunge Language Guide

Befunge is a two-dimensional esoteric programming language where code flows across a grid in multiple directions, allowing self-modifying behavior and unusual program structures.

Primary Use Cases

  • ▸Code-golf challenges using 2D logic
  • ▸Educational demonstrations of non-linear control flow
  • ▸Studying self-modifying grid-based programs
  • ▸Obfuscation and creative puzzle programs
  • ▸Esoteric language experimentation

Notable Features

  • ▸Two-dimensional instruction execution
  • ▸Self-modifying code via 'p' and 'g' instructions
  • ▸Stack-based operations
  • ▸Randomized flow with '?' instruction
  • ▸Readable ASCII grid layout

Origin & Creator

Befunge was created in 1993 by Chris Pressey as a language intentionally difficult to compile and optimize.

Industrial Note

Befunge is mainly used in recreational programming, code-golf challenges, esolang experimentation, and demonstrations of self-modifying 2D code flow patterns.

More Befunge Typing Exercises

Hello World in BefungeBefunge Simple AdditionBefunge Print Numbers 0-9Befunge Echo InputBefunge Loop ExampleBefunge Print ABefunge Multiply Two NumbersBefunge Clear Stack ExampleBefunge Hello Befunge

Practice Other Languages

CReactPythonC++RustTypeScriptKotlinPHPJavaC#RubyMqlCqlN1qlCypher