I must just be stupid or something because that is not working either! Now I have this and it still is not working.

Code:

# include <stdio.h>
main()
{
int x=0;
int iArray[10]={0};
int iResponse=0;
int iTemp=0;
//Prompt for user input
for ( x= 0; x< 10; x++){
printf("\nEnter a number:\n");
scanf("%d", &iArray[x]);}
//menu for order
printf("\nEnter your selection\n");
printf("\n1\tList your numbers in ascending order\n");
printf("\n2\tList your numbers in descending order\n");
scanf("%d", &iResponse);
//Sort numbers
void bubbleSort(int iArray[], int array_size)
{
int i, j, temp;
for (i = (10 - 1); i >= 0; i--)
{
for (j = 1; j <= i; j++)
{
if (iArray[j-1] > iArray[j])
{
temp = iArray[j-1];
iArray[j-1] = iArray[j];
iArray[j] = temp;
}
}
}
}
//Display order
if (iResponse == 1){
for (x=0; x<10; x++)
printf("\n %d\n",iArray[x]);}
if (iResponse == 2){
for (x=10;x>0; x--)
printf("\n%d\n", iArray[x]);}
}