#include <iostream>
using namespace std;
void insertSort(int data[], int &n, int a)
{
int i;
for (i=0;i<n;i++)
if (a<data[i]);break;
}
void print(int data[],int n)
{
}
void main()
{
int data[10],int nNum=0,int a;
for (int i=0;i<9;i++){
cout<<"enter the "<<i<<"th number of array"<<endl;
cin>>a;
insertSort(data,nNum,a);
}
print (data,nNum)
}
using namespace std;
void insertSort(int data[], int &n, int a)
{
int i;
for (i=0;i<n;i++)
if (a<data[i]);break;
}
void print(int data[],int n)
{
}
void main()
{
int data[10],int nNum=0,int a;
for (int i=0;i<9;i++){
cout<<"enter the "<<i<<"th number of array"<<endl;
cin>>a;
insertSort(data,nNum,a);
}
print (data,nNum)
}