Multiple loops

February 05 2010 by lovinash 139
false
Maple

1


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

 

 

 
Loading Comments & Answers

You must be logged into your MaplePrimes account in order to post a comment. If you don't have an account, you can create an account here.

     

Forgot Your Password? Create an Account