Using arrays in C programming.

How do I write a program that will read ten integers from the keyboard and place them in an array? The program must then sort the array into ascending and descending order and print the sorted lists. The program must not change the original array or create any other integer arrays. How would I begin this problem if I'm working on a unix based system?

© SolutionLibrary Inc. solutionlibary.com 9836dcf9d7 https://solutionlibrary.com/computer-science/software-development/using-arrays-in-c-programming-2v7

Solution Preview

...ten integers from the keyboard and place them in an array.
<br>This 1st step will be easy using the loop method, for example: define an array like num[10], then read the integers from the keyboard using:
<br>for (i=0; i<10; i++)
<br>{ scanf()}

<br>2. Since you cannot ...