We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.

Disan Count Pesudocode

From Esolang
Jump to navigation Jump to search
This article is not detailed enough and needs to be expanded. Please help us by adding some more information.

Disan Count Pesudocode (or DCP) is a esolang created by User:Ractangle based on this pesudo-code:

n ← input n
a ← 0
Start:
  If a is even:
    print a + "is even!"
  a ← a + 1
  If a < n:
    Jump to Start

Syntax

Command Action Example
A ← B Assigns variable A with value B
B ← 5
A ← B
input A Takes input and stores into a variable
input i
A: Creates label A none
If A: Conditional
If A is 10
  print "Hello, world!"
print A Prints A
print "hello :D"
Jump to A Goto statement none

Examples

Hello, world!

print "Hello, world!"

Cat program

input i
print i

(almost) Disan Count

input n
a ← 0
Start:
 a ← a+1
 print a
 If a < n:
   Jump to Start