Question: Assigning variables in a procedure.

Say I have the following procedure:

testproc := proc(x,y)

print(x);print(y);

x:=y;

print(x);

end proc;

And I input the following:

testproc(6,10);

Why doesn't this work? I want x to be assigned the value of why (ie, x:=10).

Please Wait...