#include<stdio.h>
int main()
{
int i,j,b,k,n,l;
printf(“\n\nenter the number of values u will enter : “);
scanf(“%d”,&n);
int a[n];
printf(“\nnow enter the elements : \n”);
for(l=0;l<n;l++)
{
scanf(“%d”,&a[l]);
}
for(i=0;i<n;i++)
{
for(j=0;j<n-1;j++)
{
if(a[j]>a[j+1])
{
b=a[j];
a[j]=a[j+1];
a[j+1]=b;
}
}
}
for(k=0;k<n;k++)
{
printf(“\n%d”,a[k]);
}
}