#include #include #include #include #include using namespace std; void sort(int a[],int n); int main() { /* Enter your code here. Read input from STDIN. Print output to STDOUT */ int n,i,j,len,max=0; cin>>n; int a[n]; //input the array for(i=0;i>a[i]; //sort the array sort(a,n); //displaying the sorted array /*for(i=0;imax) max = len; } cout<=0 && a[j]>k; j--) a[j+1] = a[j]; a[j+1] = k; } }