06-26-2003, 08:04 PM
Do what you want, graphics, math, annoying sounds.... but do it recursively! (Recursion is based on using a function that calls itself)
Code:
declare sub factorial&(x&)
print factorial&(10)
end
function factorial&(x&)
if x& then factorial&(x&)=x&*factorial&(x&-1) else factorial&=1
end function
Antoni