Talk:Disan Count Pesudocode

From Esolang
Jump to navigation Jump to search
input n
a ← 0
Start:
 a ← a+1
 If a < n:
   Jump to Start

is not a disan count code because it doesn't check parity. --None1 07:59, 26 August 2024 (UTC)

but why do i need to check if a=even? # Ractangle (Questions only in Discord, belarusianflag)
'cos the original pseudocode specified so:
n ← input n
a ← 0
Start:
  If a is even:
    print a + "is even!"
  a ← a + 1
  If a < n:
    Jump to Start

--None1 03:14, 27 August 2024 (UTC)