#include iostream.h>
#include stdio.h>
#include conio.h>
int getarray(int x[],int first)
  {
    int i;
    for(i=0;i    {
        printf("Enter element  %d : ",i+1);
        scanf("%d",&x[i]);
    }
    return (x[first]);
  }
int main()
 {
     
        int* x;
            int first,left=0,i,j,temp;
        printf("Enter Size of aray : ");
        scanf("%d",&first);
        x=new int[first];
        getarray(x,first);
        for(i=0;i<=first-1;i++)
            for(j=i+1;j            if(x[i]>x[j])
              {
                temp=x[i];
                x[i]=x[j];
                x[j]=temp;
                  }
        for(int k=0;k < first;k++)
             printf("%d   ,",x[k]);
        cout< < endl < < endl;
                getch();

            return 0;
 }