Question: Have Maple run an algorithm

I am looking to have Maple run the algorithm I am given:

function Crunch (x∈ R)

if x ≥ 100 then

return x/100


return x+Crunch(10*x)

I am looking to be able to input 4 different numbers for x and have the algorithm execute. I understand how to arrive at the answers manually but as algorithms get more complex, I won't be able to. Thank you!

Please Wait...