1. Home
  2. /
  3. Lolcode
  4. /
  5. Check Even Number

Check Even Number - Lolcode Typing CST Test

Loading…

Check Even Number — Lolcode Code

Checks if a number is even and prints YES or NO.

HAI 1.2
I HAS A NUM ITZ 6
BOTH SAEM NUM MOD 2 AN 0, O RLY?
	YA RLY
		VISIBLE "YES"
	NO WAI
		VISIBLE "NO"
OIC
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 Odd NumberSimple MultiplicationSimple DivisionFactorial FunctionFibonacci SequenceMaximum of Two Numbers

Practice Other Languages

CReactPythonC++RustTypeScriptKotlinPHPJavaC#RubyMqlCqlN1qlCypher