Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (13 sloc) 297 Bytes
# Absolute Value Example
# Asks the user for a number and then prints out its absolute value.
num is number
display "Enter a number: "
accept num
if num is greater than or equal to 0 then
display num lf
in num solve num * -1
display num lf
end if
You can’t perform that action at this time.