1. Home
  2. /
  3. Lolcode
  4. /
  5. Factorial Function

Factorial Function - Lolcode Typing CST Test

Loading…

Factorial Function — Lolcode Code

Computes factorial of a number using recursion.

HAI 1.2
I HAS A NUM ITZ 5
HOW IZ FACT YR NUM
	NUM SMALLR 1, O RLY?
		YA RLY
		VISIBLE 1
		NO WAI
		VISIBLE NUM TIMES FACT NUM BIGGR 1
	OIC
VISIBLE FACT NUM
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 AdditionSimple SubtractionCheck Even NumberCheck Odd NumberSimple MultiplicationSimple DivisionFibonacci SequenceMaximum of Two Numbers

Practice Other Languages

CReactPythonC++RustTypeScriptKotlinPHPJavaC#RubyMqlCqlN1qlCypher