Question: What ius wrong here?

Another GCD attempt. Why is there a parse problem? Thanks


 

``

``

restart

"proc GCD3:=proc(n1,n2)    local r, a,b;    a:=n1; b:= n2;    while (a mod b) >0  do       r:=a mod b;      a:=b;      b:=r;   end do;    return b;  end proc;  "

Error, unable to parse

"proc GCD3:=proc(n1,n2)   local r, a,b;  a:=n1; b:= n2;    while (a mod b) >0  do  r:=a mod b;  a:=b;  b:=r;   end do;  return b;  end proc;  "

 

``


 

Download GCD3.mw

Please Wait...