Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
# Disan Count
# by Martin del Rio
# https://www.ldpl-lang.org/
DATA:
n is number # Number to count down from
mod is number # Result of the modulo operations
PROCEDURE:
# Get number to count down from
display "Enter a number: "
accept n
while n is greater than or equal to 0 do
modulo n by 2 in mod
if mod is equal to 0 then
display n crlf
end if
in n solve n - 1
repeat