1. Home
  2. /
  3. Lolcode
  4. /
  5. Simple Subtraction

Simple Subtraction - Lolcode Typing CST Test

Loading…

Simple Subtraction — Lolcode Code

Subtracts one number from another and prints the result.

HAI 1.2
I HAS A NUM1 ITZ 10
I HAS A NUM2 ITZ 4
I HAS A DIFF
DIFF R NUM1 MINUS NUM2
VISIBLE DIFF
KTHXBYE

Lolcode Language Guide

LOLCODE is an esoteric programming language designed to resemble the syntax and grammar of 'lolspeak', the internet meme language used by LOLcats. It is intended as a humorous, educational, and experimental programming language.

Primary Use Cases

  • ▸Educational demonstrations of syntax and programming concepts
  • ▸Fun coding projects and memes
  • ▸Experimentation with esoteric language design
  • ▸Introducing programming concepts in a playful manner
  • ▸Artistic or internet culture-inspired coding

Notable Features

  • ▸Humorous English-like syntax
  • ▸Supports variables, expressions, loops, and conditionals
  • ▸Lightweight and interpreted
  • ▸Cross-platform interpreters available
  • ▸Esoteric and creative coding language

Origin & Creator

Created by Adam Lindsay in 2007 as a humorous take on programming languages using LOLcats language.

Industrial Note

LOLCODE has minimal industrial application; its niche is educational, creative coding, and demonstrating non-standard programming language design.

More Lolcode Typing Exercises

Hello World in LOLCODESimple AdditionCheck Even NumberCheck Odd NumberSimple MultiplicationSimple DivisionFactorial FunctionFibonacci SequenceMaximum of Two Numbers

Practice Other Languages

CReactPythonC++RustTypeScriptKotlinPHPJavaC#RubyMqlCqlN1qlCypher