Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (14 sloc) 276 Bytes
# Odd or Not
# Tells you if a number is odd or not
data:
num is number
mod is number
procedure:
display "Enter a number: "
accept num
modulo num by 2 in mod
if mod is equal to 0 then
display num " is even." lf
else
display num " is odd." lf
end if
You can’t perform that action at this time.