This is the exact wording for what i am needing to accomplish with my program:

"Write a program that allows the user to enter 5 numbers from the keyboard. Sort the numbers using any sort routine you wish. The output from your program should be 2 columns of numbers. The left column should be the numbers in the order they were originally entered and the right column should be the sorted list. The columns should be labeled. You will need 2 arrays to accomplish this.
Use separate functions for input, sorting, and printing"

My two main problems are that I'm not sure how to get the entered numbers into two arrays. And secondly my sort function is giving me all kinds of grief. So I commented it out to work one step at a time. Any help would be great
this one has been really tough.

Code:
#include <stdio.h>
# define maxnum 5




void display (int []);
void bubblesort (int[], int);


int main ()
{
    
    int nums [maxnum];
    int i, j;
    
    printf ("Please enter five numbers\n");
    for (i=0; i<maxnum; i++){
    printf ("Enter a number:");
    scanf ("%d", &nums[i]);
    }
    
    printf ("\n");
    
    display (nums);
    
system ("PAUSE");
return 0;
}


void display (int nums[])
{
     int i;
    printf ("Entered List    Sorted List\n"); 
    printf ("____________    ___________\n");
     for (i=0; i<maxnum; i++){
    printf ("%6d %15d\n", nums[i], nums[i]);
    }
    printf ("\n\n");
}


/*void bubblesort (int num[], int maxnum)
{
     int i, j, temp;
     
     for (i=0; i<(maxnum-1); i++){
         for (j=1; j<maxnum; j++){
             if (num[j]<num[j-1])
             {
                temp=num[j];
                num[j]=num[j-1];
                num[j-1]=temp;
             }
         }
     }


}      */