1. Home
  2. /
  3. Intercal
  4. /
  5. Count to 5

Count to 5 - Intercal Typing CST Test

Loading…

Count to 5 — Intercal Code

Counts from 1 to 5 using INTERCAL loops.

DO ,1 <- #1
DO ,2 <- #5
(LOOP) PLEASE DO ,1 <- ,1 + #1
DO ,3 <- ,1
DO ,3 SUB #1 <- ,3
PLEASE COME FROM (LOOP) NEXT
PLEASE GIVE UP

Intercal Language Guide

INTERCAL (Compiler Language With No Pronounceable Acronym) is an esoteric programming language designed to be as different from conventional languages as possible, often intentionally obscure and humorous.

Primary Use Cases

  • ▸Esoteric language experimentation
  • ▸Humorous programming challenges
  • ▸Teaching unconventional programming concepts
  • ▸Code obfuscation contests
  • ▸Studying Turing-completeness in non-standard languages

Notable Features

  • ▸Unusual syntax including COME FROM, . (dot) operators, and unconventional keywords
  • ▸Turing-complete despite bizarre design
  • ▸Strongly emphasizes programmer confusion for humor and challenge
  • ▸No resemblance to conventional programming languages
  • ▸Memory and control flow manipulation in non-intuitive ways

Origin & Creator

INTERCAL was created in 1972 by Don Woods and James M. Lyon at Princeton University as a satirical take on programming language design.

Industrial Note

INTERCAL is primarily used for entertainment, programming jokes, esolang experiments, and educational exercises in thinking differently about programming constructs.

More Intercal Typing Exercises

Hello World in INTERCALINTERCAL Simple AdditionINTERCAL Hello NameINTERCAL Bitwise NOT ExampleINTERCAL Swap VariablesINTERCAL Multiply by Repeated AdditionINTERCAL Print Digits 0-9INTERCAL Conditional ExampleINTERCAL Reverse Number

Practice Other Languages

CReactPythonC++RustTypeScriptKotlinPHPJavaC#RubyMqlCqlN1qlCypher