i have a problem in this 1 of my problem!!!!
can you solve this one for me!!!! or post here your program!!!!
only "C" please

here's my program!!:
Code:
#include<stdio.h>
#include<conio.h>

int main(void)

{ 
    int array[10], t, x;
        
    for (x=0; x<10; x++)
    {
        printf("Enter integer number:\n ");
        scanf("%d", &array[x]);
        }
                if(array[x] < array[x+1])
                
                                       t=array[x];
                                       array[x]=array[x+1];
                                       array[x+1]=t;
        
     
        printf("The integers in ascending order are : ");
        
        for (x=0;x<10;x++)
        printf("%d\n", array[x]);
            
            
            getch();
            }
Input is:
5 6 2 4 3 1 7 90 23 41 45 24
The correct Output is:
1 2 3 4 5 6 7 23 24 41 45 90