Asked by stephanie
                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.
            
        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.
Answers
                    Answered by
            Steve
            
    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
    
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
                                                    There are no AI answers yet. The ability to request AI answers is coming soon!
                                            
                Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.