Create the logic for a program that prompts a user for three

numbers and stores them in an array. Pass the array to a
method that reverses the order of the numbers. Display the
reversed numbers in the main program.

1 answer

for i=1 to 3
prompt "Enter a number"
read a(i)

b = reverse(a)
print b

function reverse(x)
for i=1 to 3
y(4-i) = x(i)
return y
end function