
-----------------------------------
SucreTeen123
Tue Apr 17, 2012 8:17 am

Procedure Rotate Help
-----------------------------------
Write and test a procedure subprogram called rotate which
will rotate the integer values of three parameters. If the
parameters A, B, and C originally had values 1 2 3 before the
operation of the procedure, then afterwards the values would
be 3 1 2.

I based the rotate program on this one:

procedure swap (x, y : string)
    put x
    put y
end swap
swap ("Sweet" , "Cake")

but when I try to do the rotate one it doesn't work! Can someone please explain to me what I am doing wrong?
procedure rotate (a, b, c : string)
    put a
    put b
    put c
end rotate
rotate ("3", "4", "1")

-----------------------------------
Raknarg
Tue Apr 17, 2012 9:54 am

RE:Procedure Rotate Help
-----------------------------------
Look at yuor old topic, it goes over the exact same thing.

And stop posting in submissions
