Question: Multiple loops

Can i make an algorithm like this in maple?

w= 4

for k= 1 to 10 do

             for h = 1 to 20 do

                      for a = 4 to 15 do

                               w1= a+hk

                              if  w1< w

                              then w=w1

                              else w=w

                        end

              end

end

 

what i am trying to do is variate k,h and a within a range,but one at a time. Im new to maple and the syntax ive been trying dont work. can someone please advice me on this?

thanks

Nash

 

 

Please Wait...