Write an MIPS program that prompts the user for a series of 10 integers and hold
ID: 3586770 • Letter: W
Question
Write an MIPS program that prompts the user for a series of 10 integers and holds them in an integer array. Print the array with tabs between the elements, go to the next line, then reverse the elements in the array and print the integers again (with tabs) in the resulting reversed order. Do not just pass through the array in reverse order to print it. Exchange the actual data elements in the array.
For example, if the user enters this series (again, prompt for these on separate input lines):
12 8 11 32 20 1 29 6 19 12
print this (on two lines as shown):
12 8 11 32 20 1 29 6 19 12
12 19 6 29 1 20 32 11 8 12
Explanation / Answer
Hope this will help you.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.